about summary refs log tree commit diff
path: root/src/tools/compiletest
diff options
context:
space:
mode:
authorFelix S. Klock II <pnkfelix@pnkfx.org>2018-04-11 17:28:14 +0200
committerFelix S. Klock II <pnkfelix@pnkfx.org>2018-04-18 14:47:28 +0200
commit02a7809f1c10ceab7ffe4652f1211cdc3c6fd4c1 (patch)
treebd0134530edfa7e56aa5c276218b966efb4b3519 /src/tools/compiletest
parentae6a9d4ba484f8f5bb9cbebf6da6d179bef519e1 (diff)
downloadrust-02a7809f1c10ceab7ffe4652f1211cdc3c6fd4c1.tar.gz
rust-02a7809f1c10ceab7ffe4652f1211cdc3c6fd4c1.zip
Generate separate stamp files for `--compare-mode=nll`, and also use them. :)
Diffstat (limited to 'src/tools/compiletest')
-rw-r--r--src/tools/compiletest/src/main.rs11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/tools/compiletest/src/main.rs b/src/tools/compiletest/src/main.rs
index f61ab7bae45..37f7af0abe8 100644
--- a/src/tools/compiletest/src/main.rs
+++ b/src/tools/compiletest/src/main.rs
@@ -626,7 +626,7 @@ pub fn make_test(config: &Config, testpaths: &TestPaths) -> test::TestDescAndFn
 
     // Debugging emscripten code doesn't make sense today
     let ignore = early_props.ignore
-        || (!up_to_date(config, testpaths, &early_props) && config.compare_mode.is_none())
+        || !up_to_date(config, testpaths, &early_props)
         || (config.mode == DebugInfoGdb || config.mode == DebugInfoLldb)
             && config.target.contains("emscripten");
 
@@ -642,10 +642,15 @@ pub fn make_test(config: &Config, testpaths: &TestPaths) -> test::TestDescAndFn
 }
 
 fn stamp(config: &Config, testpaths: &TestPaths) -> PathBuf {
+    let mode_suffix = match config.compare_mode {
+        Some(ref mode) => format!("-{}", mode.to_str()),
+        None => format!(""),
+    };
     let stamp_name = format!(
-        "{}-{}.stamp",
+        "{}-{}{}.stamp",
         testpaths.file.file_name().unwrap().to_str().unwrap(),
-        config.stage_id
+        config.stage_id,
+        mode_suffix
     );
     config
         .build_base