mirror of
https://github.com/rust-lang/cargo.git
synced 2025-10-01 11:30:39 +00:00
Trim the bench test so it cannot be non-deterministic
This commit is contained in:
parent
70af0636d4
commit
020efe02f5
@ -1493,7 +1493,6 @@ fn json_artifact_includes_executable_for_benchmark() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let p = project()
|
let p = project()
|
||||||
.file("src/main.rs", "fn main() {}")
|
|
||||||
.file(
|
.file(
|
||||||
"benches/benchmark.rs",
|
"benches/benchmark.rs",
|
||||||
r#"
|
r#"
|
||||||
@ -1510,40 +1509,6 @@ fn json_artifact_includes_executable_for_benchmark() {
|
|||||||
|
|
||||||
p.cargo("bench --no-run --message-format=json")
|
p.cargo("bench --no-run --message-format=json")
|
||||||
.with_json(r#"
|
.with_json(r#"
|
||||||
{
|
|
||||||
"executable": "[..]/foo/target/release/foo[EXE]",
|
|
||||||
"features": [],
|
|
||||||
"filenames": "{...}",
|
|
||||||
"fresh": false,
|
|
||||||
"package_id": "foo 0.0.1 ([..])",
|
|
||||||
"profile": "{...}",
|
|
||||||
"reason": "compiler-artifact",
|
|
||||||
"target": {
|
|
||||||
"crate_types": [ "bin" ],
|
|
||||||
"kind": [ "bin" ],
|
|
||||||
"edition": "2015",
|
|
||||||
"name": "foo",
|
|
||||||
"src_path": "[..]/foo/src/main.rs"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
{
|
|
||||||
"executable": "[..]/foo/target/release/foo-[..][EXE]",
|
|
||||||
"features": [],
|
|
||||||
"filenames": "{...}",
|
|
||||||
"fresh": false,
|
|
||||||
"package_id": "foo 0.0.1 ([..])",
|
|
||||||
"profile": "{...}",
|
|
||||||
"reason": "compiler-artifact",
|
|
||||||
"target": {
|
|
||||||
"crate_types": [ "bin" ],
|
|
||||||
"kind": [ "bin" ],
|
|
||||||
"edition": "2015",
|
|
||||||
"name": "foo",
|
|
||||||
"src_path": "[..]/foo/src/main.rs"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
{
|
{
|
||||||
"executable": "[..]/foo/target/release/benchmark-[..][EXE]",
|
"executable": "[..]/foo/target/release/benchmark-[..][EXE]",
|
||||||
"features": [],
|
"features": [],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user