Skip to content

Commit dee3c2e

Browse files
committedMay 27, 2017
Fix build_all_exclude
by using with_stderr_contains because parallel build may mix up the lines. Additionally, remove the last line of the benchmark.
1 parent b961de2 commit dee3c2e

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed
 

‎tests/bench.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -1061,9 +1061,7 @@ fn bench_all_exclude() {
10611061
execs().with_status(0)
10621062
.with_stdout_contains("\
10631063
running 1 test
1064-
test bar ... bench: 0 ns/iter (+/- 0)
1065-
1066-
test result: ok. 0 passed; 0 failed; 0 ignored; 1 measured"));
1064+
test bar ... bench: 0 ns/iter (+/- 0)"));
10671065
}
10681066

10691067
#[test]

‎tests/build.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -2841,9 +2841,9 @@ fn build_all_exclude() {
28412841
.arg("--exclude")
28422842
.arg("baz"),
28432843
execs().with_status(0)
2844-
.with_stderr("[..] Compiling bar v0.1.0 ([..])\n\
2845-
[..] Compiling foo v0.1.0 ([..])\n\
2846-
[..] Finished dev [unoptimized + debuginfo] target(s) in [..]\n"));
2844+
.with_stderr_contains("[..]Compiling foo v0.1.0 [..]")
2845+
.with_stderr_contains("[..]Compiling bar v0.1.0 [..]")
2846+
.with_stderr_does_not_contain("[..]Compiling baz v0.1.0 [..]"));
28472847
}
28482848

28492849
#[test]

‎tests/test.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -2418,9 +2418,7 @@ fn test_all_exclude() {
24182418
.arg("baz"),
24192419
execs().with_status(0)
24202420
.with_stdout_contains("running 1 test
2421-
test bar ... ok
2422-
2423-
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured"));
2421+
test bar ... ok"));
24242422
}
24252423

24262424
#[test]

0 commit comments

Comments
 (0)