about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJonas Schievink <jonasschievink@gmail.com>2020-01-14 00:56:11 +0100
committerJonas Schievink <jonasschievink@gmail.com>2020-01-21 19:01:56 +0100
commitef5f929471c7b9769aac4d3e4aae5deeb7acaa3c (patch)
tree1e1c215f1d251abee8df48a7fe6cae4f3affea63
parentce7172da5142e3914f9461f7e968897959cab338 (diff)
downloadrust-ef5f929471c7b9769aac4d3e4aae5deeb7acaa3c.tar.gz
rust-ef5f929471c7b9769aac4d3e4aae5deeb7acaa3c.zip
Account for run-make tests in `is_up_to_date`
-rw-r--r--src/tools/compiletest/src/main.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tools/compiletest/src/main.rs b/src/tools/compiletest/src/main.rs
index efa9d05f16c..1f0b42d1786 100644
--- a/src/tools/compiletest/src/main.rs
+++ b/src/tools/compiletest/src/main.rs
@@ -624,7 +624,8 @@ fn is_up_to_date(
 
     // Check timestamps.
     let mut inputs = inputs.clone();
-    inputs.add_path(&testpaths.file);
+    // Use `add_dir` to account for run-make tests, which use their individual directory
+    inputs.add_dir(&testpaths.file);
 
     for aux in &props.aux {
         let path = testpaths.file.parent().unwrap().join("auxiliary").join(aux);