Set RUST_BACKTRACE=0 in tests that include a backtrace in stderr

This removes the implicit dependency on the environment variables set
when running `./x.py test`
This commit is contained in:
Aaron Hill 2019-10-02 15:23:22 -04:00
parent f2023ac599
commit a336536a01
No known key found for this signature in database
GPG Key ID: B4087E510E98B164
8 changed files with 8 additions and 4 deletions

View File

@ -1,4 +1,5 @@
// aux-build:invalid-punct-ident.rs
// rustc-env:RUST_BACKTRACE=0
// FIXME https://github.com/rust-lang/rust/issues/59998
// normalize-stderr-test "thread.*panicked.*proc_macro_server.rs.*\n" -> ""

View File

@ -1,5 +1,5 @@
error: proc macro panicked
--> $DIR/invalid-punct-ident-1.rs:15:1
--> $DIR/invalid-punct-ident-1.rs:16:1
|
LL | invalid_punct!();
| ^^^^^^^^^^^^^^^^^

View File

@ -1,4 +1,5 @@
// aux-build:invalid-punct-ident.rs
// rustc-env:RUST_BACKTRACE=0
// FIXME https://github.com/rust-lang/rust/issues/59998
// normalize-stderr-test "thread.*panicked.*proc_macro_server.rs.*\n" -> ""

View File

@ -1,5 +1,5 @@
error: proc macro panicked
--> $DIR/invalid-punct-ident-2.rs:15:1
--> $DIR/invalid-punct-ident-2.rs:16:1
|
LL | invalid_ident!();
| ^^^^^^^^^^^^^^^^^

View File

@ -1,4 +1,5 @@
// aux-build:invalid-punct-ident.rs
// rustc-env:RUST_BACKTRACE=0
// FIXME https://github.com/rust-lang/rust/issues/59998
// normalize-stderr-test "thread.*panicked.*proc_macro_server.rs.*\n" -> ""

View File

@ -1,5 +1,5 @@
error: proc macro panicked
--> $DIR/invalid-punct-ident-3.rs:15:1
--> $DIR/invalid-punct-ident-3.rs:16:1
|
LL | invalid_raw_ident!();
| ^^^^^^^^^^^^^^^^^^^^^

View File

@ -3,6 +3,7 @@
// run-flags: --test-threads=1
// run-fail
// check-run-results
// exec-env:RUST_BACKTRACE=0
// ignore-wasm no panic or subprocess support
// ignore-emscripten no panic or subprocess support

View File

@ -17,7 +17,7 @@ testing123
testing321
thread 'main' panicked at 'assertion failed: `(left == right)`
left: `2`,
right: `5`', $DIR/test-panic-abort.rs:30:5
right: `5`', $DIR/test-panic-abort.rs:31:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.