Skip to content

Commit 5186849

Browse files
gilescopealexcrichton
authored andcommitted
assert_eq failure message now multi-line related to rust pull request 42541.
1 parent ad5a408 commit 5186849

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

tests/bench.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -241,11 +241,9 @@ fn cargo_bench_failing_test() {
241241
[COMPILING] foo v0.5.0 ({})
242242
[FINISHED] release [optimized] target(s) in [..]
243243
[RUNNING] target[/]release[/]deps[/]foo-[..][EXE]
244-
thread '[..]' panicked at 'assertion failed: \
245-
`(left == right)`[..]", p.url()))
244+
thread '[..]' panicked at 'assertion failed: `(left == right)`[..]", p.url()))
246245
.with_stderr_contains("[..]left: `\"hello\"`[..]")
247246
.with_stderr_contains("[..]right: `\"nope\"`[..]")
248-
.with_stderr_contains("[..]src[/]foo.rs:14")
249247
.with_status(101));
250248
}
251249

@@ -295,7 +293,7 @@ fn bench_with_lib_dep() {
295293
[FINISHED] release [optimized] target(s) in [..]
296294
[RUNNING] target[/]release[/]deps[/]foo-[..][EXE]
297295
[RUNNING] target[/]release[/]deps[/]baz-[..][EXE]", p.url()))
298-
.with_stdout_contains("test lib_bench ... bench: [..]")
296+
.with_stdout_contains("test lib_bench ... bench: [..]")
299297
.with_stdout_contains("test bin_bench ... bench: [..]"));
300298
}
301299

@@ -695,7 +693,7 @@ fn bench_dylib() {
695693
[RUNNING] `[..]target[/]release[/]deps[/]foo-[..][EXE] --bench`
696694
[RUNNING] `[..]target[/]release[/]deps[/]bench-[..][EXE] --bench`", dir = p.url()))
697695
.with_stdout_contains_n("test foo ... bench: [..]", 2));
698-
696+
699697
p.root().move_into_the_past();
700698
assert_that(p.cargo("bench").arg("-v"),
701699
execs().with_status(0)

0 commit comments

Comments
 (0)