Skip to content

Commit 38d26d8

Browse files
committed
Include the mode in compiletest's aux-build directory.
The run-pass and pretty run-pass tests could run concurrently, and if they do, they need to keep their output segregated. This change might be overkill. We need the suffix for the `pretty` mode, but we might not need it otherwise. The `debuginfo-lldb` and `debuginfo-gdb` modes look like they could also need it, but the current `tests.mk` file happens not to enable both lldb and gdb at the same time, for incidental reasons.
1 parent 89b6f39 commit 38d26d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiletest/runtest.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1452,7 +1452,7 @@ fn make_out_name(config: &Config, testfile: &Path, extension: &str) -> PathBuf {
14521452
fn aux_output_dir_name(config: &Config, testfile: &Path) -> PathBuf {
14531453
let f = output_base_name(config, testfile);
14541454
let mut fname = f.file_name().unwrap().to_os_string();
1455-
fname.push("libaux");
1455+
fname.push(&format!(".{}.libaux", config.mode));
14561456
f.with_file_name(&fname)
14571457
}
14581458

0 commit comments

Comments
 (0)