Skip to content

Commit

Permalink
test: relax panic output assertion
Browse files Browse the repository at this point in the history
rust-lang/rust#122565 adds a new line to thread panic output.
To make the current test suites works on stable, beta, and nightly,
similar to rust-lang#14602,
this relaxes the assertion around that by globbing everything.
  • Loading branch information
weihanglo committed Dec 29, 2024
1 parent 0276088 commit 31c55d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/build-std/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,7 @@ fn remap_path_scope() {
str![[r#"
[FINISHED] `release` profile [optimized + debuginfo] target(s) in [ELAPSED]s
[RUNNING] `target/[HOST_TARGET]/release/foo`
...
[..]thread '[..]' panicked at [..]src/main.rs:3:[..]:
[..]remap to /rustc/<hash>[..]
[..]at /rustc/[..]/library/std/src/[..]
Expand Down
2 changes: 2 additions & 0 deletions tests/testsuite/build_script.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4022,6 +4022,7 @@ Caused by:
cargo::warning=bar
--- stderr
...
thread 'main' panicked at build.rs:5:21:
explicit panic
[NOTE] run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Expand Down Expand Up @@ -4093,6 +4094,7 @@ Caused by:
cargo::warning=bar
--- stderr
...
thread 'main' panicked at [ROOT]/home/.cargo/registry/src/-[HASH]/published-0.1.0/build.rs:5:21:
explicit panic
[NOTE] run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Expand Down

0 comments on commit 31c55d2

Please sign in to comment.