]> git.lizzy.rs Git - rust.git/commitdiff
Improve error message for tests with panic=abort
authorTyler Mandry <tmandry@gmail.com>
Thu, 14 Nov 2019 15:26:41 +0000 (07:26 -0800)
committerTyler Mandry <tmandry@gmail.com>
Fri, 15 Nov 2019 13:52:06 +0000 (05:52 -0800)
src/libsyntax_ext/test_harness.rs
src/test/ui/test-panic-abort-disabled.rs
src/test/ui/test-panic-abort-disabled.stderr

index 1492f6f575ff71a64c7ee77e6a24871df05ea524..659780d7a434b61167b3deadb6fd2eccc8625dcb 100644 (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,
index f24046ff0e8d2e2355428588a48edc64dd41e92d..4adb161d9ee4b09b17c2b2e2c4f8e676e9e22d2f 100644 (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
index a8d9bad43ed3c4ae81479cb8734e092afbbc267a..9c65c7360c108792e1a2afe635734dff787c1516 100644 (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