about summary refs log tree commit diff
path: root/src/tools/compiletest
diff options
context:
space:
mode:
authorBen Kimock <kimockb@gmail.com>2024-02-23 18:04:01 -0500
committerBen Kimock <kimockb@gmail.com>2024-02-23 18:04:01 -0500
commit2f3c0b98593044c00492f4287e27ef9733121c97 (patch)
treea9eadd9e5552983d52be9f52be6ac3c179bacdc6 /src/tools/compiletest
parent2dbd6233ccdb2cd4b621a5e839a95c3fbbc0c375 (diff)
downloadrust-2f3c0b98593044c00492f4287e27ef9733121c97.tar.gz
rust-2f3c0b98593044c00492f4287e27ef9733121c97.zip
Ignore less tests in debug builds
Diffstat (limited to 'src/tools/compiletest')
-rw-r--r--src/tools/compiletest/src/runtest.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/tools/compiletest/src/runtest.rs b/src/tools/compiletest/src/runtest.rs
index 27a8079d893..61211a7d675 100644
--- a/src/tools/compiletest/src/runtest.rs
+++ b/src/tools/compiletest/src/runtest.rs
@@ -2503,8 +2503,11 @@ impl<'test> TestCx<'test> {
                 // overridden by `compile-flags`.
                 rustc.arg("-Copt-level=2");
             }
-            RunPassValgrind | Pretty | DebugInfo | Codegen | Rustdoc | RustdocJson | RunMake
-            | CodegenUnits | JsDocTest | Assembly => {
+            Assembly | Codegen => {
+                rustc.arg("-Cdebug-assertions=no");
+            }
+            RunPassValgrind | Pretty | DebugInfo | Rustdoc | RustdocJson | RunMake
+            | CodegenUnits | JsDocTest => {
                 // do not use JSON output
             }
         }