File tree 2 files changed +6
-2
lines changed
src/tools/compiletest/src/runtest
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,10 @@ impl TestCx<'_> {
22
22
let src_root = self . config . src_base . parent ( ) . unwrap ( ) . parent ( ) . unwrap ( ) ;
23
23
let src_root = cwd. join ( & src_root) ;
24
24
25
+ // FIXME(Zalathar): This should probably be `output_base_dir` to avoid
26
+ // an unnecessary extra subdirectory, but since legacy Makefile tests
27
+ // are hopefully going away, it seems safer to leave this perilous code
28
+ // as-is until it can all be deleted.
25
29
let tmpdir = cwd. join ( self . output_base_name ( ) ) ;
26
30
if tmpdir. exists ( ) {
27
31
self . aggressive_rm_rf ( & tmpdir) . unwrap ( ) ;
@@ -213,7 +217,7 @@ impl TestCx<'_> {
213
217
// `rmake_out/` directory.
214
218
//
215
219
// This setup intentionally diverges from legacy Makefile run-make tests.
216
- let base_dir = self . output_base_name ( ) ;
220
+ let base_dir = self . output_base_dir ( ) ;
217
221
if base_dir. exists ( ) {
218
222
self . aggressive_rm_rf ( & base_dir) . unwrap ( ) ;
219
223
}
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ The setup for the `rmake.rs` version is a 3-stage process:
29
29
structure within ` build/<target>/test/run-make/ `
30
30
31
31
```
32
- <test-name>/<test-name>/
32
+ <test-name>/
33
33
rmake.exe # recipe binary
34
34
rmake_out/ # sources from test sources copied over
35
35
```
You can’t perform that action at this time.
0 commit comments