Skip to content

Commit 1d6dfea

Browse files
committed
Auto merge of #4980 - Gilnaa:master, r=matklad
Fixed relaxed libtest tests This fixes tests regarding the upcoming behaviour of libtest's benchmarks. The previous PR was wrongly tested, this one fixes the problems.
2 parents 91e36aa + 64f20e4 commit 1d6dfea

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

tests/bench.rs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -288,13 +288,12 @@ fn cargo_bench_failing_test() {
288288

289289
// Force libtest into serial execution so that the test header will be printed.
290290
assert_that(p.cargo("bench").arg("--").arg("--test-threads=1"),
291-
execs().with_stdout_contains("test bench_hello ... ")
292-
.with_either_contains(format!("\
293-
[COMPILING] foo v0.5.0 ({})
291+
execs().with_stdout_contains("test bench_hello ...[..]")
292+
.with_stderr_contains(format!("\
293+
[COMPILING] foo v0.5.0 ({})[..]
294294
[FINISHED] release [optimized] target(s) in [..]
295-
[RUNNING] target[/]release[/]deps[/]foo-[..][EXE]
296-
thread '[..]' panicked at 'assertion failed: \
297-
`(left == right)`[..]", p.url()))
295+
[RUNNING] target[/]release[/]deps[/]foo-[..][EXE]", p.url()))
296+
.with_either_contains("[..]thread '[..]' panicked at 'assertion failed: `(left == right)`[..]")
298297
.with_either_contains("[..]left: `\"hello\"`[..]")
299298
.with_either_contains("[..]right: `\"nope\"`[..]")
300299
.with_either_contains("[..]src[/]main.rs:15[..]")

0 commit comments

Comments
 (0)