mirror of https://github.com/rust-lang/rust.git
Improve error message for tests with panic=abort
This commit is contained in:
parent
b8dca6c827
commit
d252ba35d4
|
@ -67,7 +67,8 @@ pub fn inject(
|
|||
PanicStrategy::Unwind
|
||||
}
|
||||
(PanicStrategy::Abort, false) => {
|
||||
span_diagnostic.err("building tests with panic=abort is not yet supported");
|
||||
span_diagnostic.err("building tests with panic=abort is not supported \
|
||||
without `-Zpanic_abort_tests`");
|
||||
PanicStrategy::Unwind
|
||||
}
|
||||
(PanicStrategy::Unwind, _) => PanicStrategy::Unwind,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// error-pattern:building tests with panic=abort is not yet supported
|
||||
// error-pattern:building tests with panic=abort is not supported
|
||||
// no-prefer-dynamic
|
||||
// compile-flags: --test -Cpanic=abort
|
||||
// run-flags: --test-threads=1
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
error: building tests with panic=abort is not yet supported
|
||||
error: building tests with panic=abort is not supported without `-Zpanic_abort_tests`
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
Loading…
Reference in New Issue