diff options
| author | Jonas Schievink <jonasschievink@gmail.com> | 2020-01-14 00:56:11 +0100 |
|---|---|---|
| committer | Jonas Schievink <jonasschievink@gmail.com> | 2020-01-21 19:01:56 +0100 |
| commit | ef5f929471c7b9769aac4d3e4aae5deeb7acaa3c (patch) | |
| tree | 1e1c215f1d251abee8df48a7fe6cae4f3affea63 | |
| parent | ce7172da5142e3914f9461f7e968897959cab338 (diff) | |
| download | rust-ef5f929471c7b9769aac4d3e4aae5deeb7acaa3c.tar.gz rust-ef5f929471c7b9769aac4d3e4aae5deeb7acaa3c.zip | |
Account for run-make tests in `is_up_to_date`
| -rw-r--r-- | src/tools/compiletest/src/main.rs | 3 |
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); |
