Skip to content

Commit 931aec1

Browse files
est31alexcrichton
authored andcommitted
Let two further tests tolerate col info in panics
Needed by rust-lang/rust#42938 I've now ripgrepped for "panicked at" and found no further test that hardcodes the "filename:line$" format.
1 parent 5186849 commit 931aec1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ failures:
263263
264264
---- test_hello stdout ----
265265
<tab>thread 'test_hello' panicked at 'assertion failed: false', \
266-
tests[/]footest.rs:4
266+
tests[/]footest.rs:4[..]
267267
")
268268
.with_stdout_contains("\
269269
failures:
@@ -295,7 +295,7 @@ failures:
295295
296296
---- test_hello stdout ----
297297
<tab>thread 'test_hello' panicked at 'assertion failed: false', \
298-
src[/]lib.rs:4
298+
src[/]lib.rs:4[..]
299299
")
300300
.with_stdout_contains("\
301301
failures:

0 commit comments

Comments
 (0)