Skip to content

Commit

Permalink
Set 'exec-env:RUST_BACKTRACE=0' in const-eval-select tests
Browse files Browse the repository at this point in the history
This allows the tests to pass even if the user has RUST_BACKTRACE
set when running 'x.py'
  • Loading branch information
Aaron1011 committed Sep 21, 2022
1 parent b79b7d8 commit 3d8b3e6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/test/ui/intrinsics/const-eval-select-backtrace-std.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// See issue #100696.
// run-fail
// check-run-results
// exec-env:RUST_BACKTRACE=0
fn main() {
&""[1..];
}
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
thread 'main' panicked at 'byte index 1 is out of bounds of ``', $DIR/const-eval-select-backtrace-std.rs:5:6
thread 'main' panicked at 'byte index 1 is out of bounds of ``', $DIR/const-eval-select-backtrace-std.rs:6:6
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
1 change: 1 addition & 0 deletions src/test/ui/intrinsics/const-eval-select-backtrace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// See issue #100696.
// run-fail
// check-run-results
// exec-env:RUST_BACKTRACE=0

#[track_caller]
fn uhoh() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
thread 'main' panicked at 'Aaah!', $DIR/const-eval-select-backtrace.rs:16:9
thread 'main' panicked at 'Aaah!', $DIR/const-eval-select-backtrace.rs:17:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

0 comments on commit 3d8b3e6

Please sign in to comment.