Skip to content

Commit

Permalink
Specify target for inaccessible-temp-dir rmake test
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoverbear committed Jun 20, 2024
1 parent 5c8459f commit a656bb6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/run-make/inaccessible-temp-dir/rmake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
// Reason: `set_readonly` has no effect on directories
// and does not prevent modification.

use run_make_support::{fs_wrapper, rustc, test_while_readonly};
use run_make_support::{fs_wrapper, rustc, target, test_while_readonly};

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

0 comments on commit a656bb6

Please sign in to comment.