Skip to content

Commit 8c353cb

Browse files
committed
Disable rmake test inaccessible-temp-dir on riscv64
1 parent 7d97c59 commit 8c353cb

File tree

1 file changed

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

1 file changed

+6
-2
lines changed

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

+6-2
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,18 @@
1313
// use a directory with non-existing parent like `/does-not-exist/output`.
1414
// See https://github.com/rust-lang/rust/issues/66530
1515

16+
//@ ignore-riscv64
17+
// FIXME: The riscv build container runs as root, and can always write
18+
// into `inaccessible/tmp`. Ideally, the riscv64-gnu docker container
19+
// would use a non-root user, but this leads to issues with
20+
// `mkfs.ext4 -d`, as well as mounting a loop device for the rootfs.
1621
//@ ignore-arm
1722
// Reason: linker error on `armhf-gnu`
1823
//@ ignore-windows
1924
// Reason: `set_readonly` has no effect on directories
2025
// and does not prevent modification.
2126

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

2429
fn main() {
2530
// Create an inaccessible directory.
@@ -28,7 +33,6 @@ fn main() {
2833
// Run rustc with `-Z temps-dir` set to a directory *inside* the inaccessible one,
2934
// so that it can't create `tmp`.
3035
rustc()
31-
.target(target())
3236
.input("program.rs")
3337
.arg("-Ztemps-dir=inaccessible/tmp")
3438
.run_fail()

0 commit comments

Comments
 (0)