about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMichael Woerister <michaelwoerister@posteo.net>2016-06-27 14:31:23 -0400
committerMichael Woerister <michaelwoerister@posteo.net>2016-06-27 14:38:41 -0400
commitf41de0ff3ad2d7b54a9bae86aadeaf3796579a7e (patch)
treedf1d68d6f53e93d442e3da8aee69789edaacdcb5
parentf019e381fe539960a0f807acd655fa7f83538eb0 (diff)
downloadrust-f41de0ff3ad2d7b54a9bae86aadeaf3796579a7e.tar.gz
rust-f41de0ff3ad2d7b54a9bae86aadeaf3796579a7e.zip
Disable debuginfo tests for a given blacklist of LLDB versions
-rw-r--r--src/tools/compiletest/src/main.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/tools/compiletest/src/main.rs b/src/tools/compiletest/src/main.rs
index cc687b53204..6830f32bb2c 100644
--- a/src/tools/compiletest/src/main.rs
+++ b/src/tools/compiletest/src/main.rs
@@ -254,6 +254,17 @@ pub fn run_tests(config: &Config) {
 
     match config.mode {
         DebugInfoLldb => {
+            if let Some(lldb_version) = config.lldb_version.as_ref() {
+                if is_blacklisted_lldb_version(&lldb_version[..]) {
+                    println!("WARNING: The used version of LLDB ({}) has a \
+                              known issue that breaks debuginfo tests. See \
+                              issue #32520 for more information. Skipping all \
+                              LLDB-based tests!",
+                             lldb_version);
+                    return
+                }
+            }
+
             // Some older versions of LLDB seem to have problems with multiple
             // instances running in parallel, so only run one test thread at a
             // time.
@@ -524,3 +535,7 @@ fn extract_lldb_version(full_version_line: Option<String>) -> Option<String> {
     }
     None
 }
+
+fn is_blacklisted_lldb_version(version: &str) -> bool {
+    version == "350"
+}