Skip to content

Commit b748fa5

Browse files
BrewTestBotchenrui333
authored andcommitted
cargo-flamegraph 0.6.8
cargo-flamegraph: update test Signed-off-by: Rui Chen <rui@chenrui.dev>
1 parent a5729e5 commit b748fa5

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

Formula/c/cargo-flamegraph.rb

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
class CargoFlamegraph < Formula
22
desc "Easy flamegraphs for Rust projects and everything else"
33
homepage "https://github.com/flamegraph-rs/flamegraph"
4-
url "https://github.com/flamegraph-rs/flamegraph/archive/refs/tags/v0.6.7.tar.gz"
5-
sha256 "d7fa901673f4ece09226aeda416b98f919b7d946541ec948f1ef682bd6eec23b"
4+
url "https://github.com/flamegraph-rs/flamegraph/archive/refs/tags/v0.6.8.tar.gz"
5+
sha256 "2673a04bd4de142220d42706e0c25a4dea08aee52cdffbf87cca5738cec649ff"
66
license any_of: ["Apache-2.0", "MIT"]
77
head "https://github.com/flamegraph-rs/flamegraph.git", branch: "main"
88

@@ -37,12 +37,7 @@ def install
3737
system "cargo", "new", "testproj", "--bin"
3838
cd "testproj" do
3939
system "cargo", "build", "--release"
40-
expected = if OS.mac?
41-
"Error: DTrace requires elevated permissions"
42-
else
43-
"WARNING: profiling without debuginfo"
44-
end
45-
assert_match expected, shell_output("cargo flamegraph 2>&1", 1)
40+
assert_match "WARNING: profiling without debuginfo", shell_output("cargo flamegraph 2>&1", 1)
4641
end
4742

4843
expected = if OS.mac?

0 commit comments

Comments
 (0)