Skip to content

Commit 5bf71ab

Browse files
committed
Auto merge of #4244 - est31:master, r=matklad
Let the cargo_bench_failing_test tolerate col info Needed by rust-lang/rust#42938
2 parents d2d6e67 + 6f34f86 commit 5bf71ab

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/bench.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ thread '[..]' panicked at 'assertion failed: \
245245
`(left == right)`[..]", p.url()))
246246
.with_stderr_contains("[..]left: `\"hello\"`[..]")
247247
.with_stderr_contains("[..]right: `\"nope\"`[..]")
248-
.with_stderr_contains("[..]src[/]foo.rs:14")
248+
.with_stderr_contains("[..]src[/]foo.rs:14[..]")
249249
.with_status(101));
250250
}
251251

@@ -295,7 +295,7 @@ fn bench_with_lib_dep() {
295295
[FINISHED] release [optimized] target(s) in [..]
296296
[RUNNING] target[/]release[/]deps[/]foo-[..][EXE]
297297
[RUNNING] target[/]release[/]deps[/]baz-[..][EXE]", p.url()))
298-
.with_stdout_contains("test lib_bench ... bench: [..]")
298+
.with_stdout_contains("test lib_bench ... bench: [..]")
299299
.with_stdout_contains("test bin_bench ... bench: [..]"));
300300
}
301301

@@ -695,7 +695,7 @@ fn bench_dylib() {
695695
[RUNNING] `[..]target[/]release[/]deps[/]foo-[..][EXE] --bench`
696696
[RUNNING] `[..]target[/]release[/]deps[/]bench-[..][EXE] --bench`", dir = p.url()))
697697
.with_stdout_contains_n("test foo ... bench: [..]", 2));
698-
698+
699699
p.root().move_into_the_past();
700700
assert_that(p.cargo("bench").arg("-v"),
701701
execs().with_status(0)

0 commit comments

Comments
 (0)