Skip to content

Commit

Permalink
Auto merge of #4980 - Gilnaa:master, r=matklad
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bors committed Jan 26, 2018
2 parents 91e36aa + 64f20e4 commit 1d6dfea
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions tests/bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -288,13 +288,12 @@ fn cargo_bench_failing_test() {

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

0 comments on commit 1d6dfea

Please sign in to comment.