Skip to content

Commit a656bb6

Browse files
committed
Specify target for inaccessible-temp-dir rmake test
1 parent 5c8459f commit a656bb6

File tree

1 file changed

+2
-1
lines changed
  • tests/run-make/inaccessible-temp-dir

1 file changed

+2
-1
lines changed

tests/run-make/inaccessible-temp-dir/rmake.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
// Reason: `set_readonly` has no effect on directories
2020
// and does not prevent modification.
2121

22-
use run_make_support::{fs_wrapper, rustc, test_while_readonly};
22+
use run_make_support::{fs_wrapper, rustc, target, test_while_readonly};
2323

2424
fn main() {
2525
// Create an inaccessible directory.
@@ -28,6 +28,7 @@ fn main() {
2828
// Run rustc with `-Z temps-dir` set to a directory *inside* the inaccessible one,
2929
// so that it can't create `tmp`.
3030
rustc()
31+
.target(&target())
3132
.input("program.rs")
3233
.arg("-Ztemps-dir=inaccessible/tmp")
3334
.run_fail()

0 commit comments

Comments
 (0)