Improve error message for tests with panic=abort

This commit is contained in:
Tyler Mandry
2019-11-14 07:26:41 -08:00
parent b8dca6c827
commit d252ba35d4
3 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -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 -1
View File
@@ -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 -1
View File
@@ -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