about summary refs log tree commit diff
path: root/tests/run-make/inaccessible-temp-dir
diff options
context:
space:
mode:
authorAna Hobden <operator@hoverbear.org>2024-06-19 11:57:03 -0700
committerAna Hobden <operator@hoverbear.org>2024-06-20 06:44:47 -0700
commita656bb6eb26d9ba63eac5f619b885230b97e8a4a (patch)
treec4e9a490410424c6d3350017cd3feaec01e9bbf0 /tests/run-make/inaccessible-temp-dir
parent5c8459f1eceba84dff8d622768dae556ea7c2495 (diff)
downloadrust-a656bb6eb26d9ba63eac5f619b885230b97e8a4a.tar.gz
rust-a656bb6eb26d9ba63eac5f619b885230b97e8a4a.zip
Specify target for inaccessible-temp-dir rmake test
Diffstat (limited to 'tests/run-make/inaccessible-temp-dir')
-rw-r--r--tests/run-make/inaccessible-temp-dir/rmake.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/run-make/inaccessible-temp-dir/rmake.rs b/tests/run-make/inaccessible-temp-dir/rmake.rs
index be24e47b6de..c6bfae4cc01 100644
--- a/tests/run-make/inaccessible-temp-dir/rmake.rs
+++ b/tests/run-make/inaccessible-temp-dir/rmake.rs
@@ -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.
@@ -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()