about summary refs log tree commit diff
path: root/src/bootstrap
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2018-10-03 10:01:56 -0600
committerTom Tromey <tom@tromey.com>2018-10-10 08:27:01 -0600
commitac66b04ccb04e264004189970c817eb3da208f4a (patch)
tree1d3860f713a1d779e4d623dddc3c34857529eeea /src/bootstrap
parent71d3a715721137ffc10becc10978fe038ee131ac (diff)
downloadrust-ac66b04ccb04e264004189970c817eb3da208f4a.tar.gz
rust-ac66b04ccb04e264004189970c817eb3da208f4a.zip
Run both lldb and gdb tests
Currently lldb tests are run only on macOS, and gdb tests are only run
elsewhere.  This patch changes this to run tests depending on what is
available.

One test is changed, as it was previously marked as failing on macOS,
whereas really it is a generic failure with lldb.

Closes #54721
Diffstat (limited to 'src/bootstrap')
-rw-r--r--src/bootstrap/test.rs20
1 files changed, 6 insertions, 14 deletions
diff --git a/src/bootstrap/test.rs b/src/bootstrap/test.rs
index 633c15b54b9..80c89b9ff38 100644
--- a/src/bootstrap/test.rs
+++ b/src/bootstrap/test.rs
@@ -812,8 +812,7 @@ default_test!(Incremental {
 
 default_test!(Debuginfo {
     path: "src/test/debuginfo",
-    // What this runs varies depending on the native platform being apple
-    mode: "debuginfo-XXX",
+    mode: "debuginfo",
     suite: "debuginfo"
 });
 
@@ -950,18 +949,11 @@ impl Step for Compiletest {
                 return;
             }
 
-            if mode == "debuginfo-XXX" {
-                return if builder.config.build.contains("apple") {
-                    builder.ensure(Compiletest {
-                        mode: "debuginfo-lldb",
-                        ..self
-                    });
-                } else {
-                    builder.ensure(Compiletest {
-                        mode: "debuginfo-gdb",
-                        ..self
-                    });
-                };
+            if mode == "debuginfo" {
+                return builder.ensure(Compiletest {
+                    mode: "debuginfo-both",
+                    ..self
+                });
             }
 
             builder.ensure(dist::DebuggerScripts {