Skip to content

Commit 020efe0

Browse files
committed
Trim the bench test so it cannot be non-deterministic
1 parent 70af063 commit 020efe0

File tree

1 file changed

+0
-35
lines changed

1 file changed

+0
-35
lines changed

tests/testsuite/bench.rs

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1493,7 +1493,6 @@ fn json_artifact_includes_executable_for_benchmark() {
14931493
}
14941494

14951495
let p = project()
1496-
.file("src/main.rs", "fn main() {}")
14971496
.file(
14981497
"benches/benchmark.rs",
14991498
r#"
@@ -1510,40 +1509,6 @@ fn json_artifact_includes_executable_for_benchmark() {
15101509

15111510
p.cargo("bench --no-run --message-format=json")
15121511
.with_json(r#"
1513-
{
1514-
"executable": "[..]/foo/target/release/foo[EXE]",
1515-
"features": [],
1516-
"filenames": "{...}",
1517-
"fresh": false,
1518-
"package_id": "foo 0.0.1 ([..])",
1519-
"profile": "{...}",
1520-
"reason": "compiler-artifact",
1521-
"target": {
1522-
"crate_types": [ "bin" ],
1523-
"kind": [ "bin" ],
1524-
"edition": "2015",
1525-
"name": "foo",
1526-
"src_path": "[..]/foo/src/main.rs"
1527-
}
1528-
}
1529-
1530-
{
1531-
"executable": "[..]/foo/target/release/foo-[..][EXE]",
1532-
"features": [],
1533-
"filenames": "{...}",
1534-
"fresh": false,
1535-
"package_id": "foo 0.0.1 ([..])",
1536-
"profile": "{...}",
1537-
"reason": "compiler-artifact",
1538-
"target": {
1539-
"crate_types": [ "bin" ],
1540-
"kind": [ "bin" ],
1541-
"edition": "2015",
1542-
"name": "foo",
1543-
"src_path": "[..]/foo/src/main.rs"
1544-
}
1545-
}
1546-
15471512
{
15481513
"executable": "[..]/foo/target/release/benchmark-[..][EXE]",
15491514
"features": [],

0 commit comments

Comments
 (0)