File tree 1 file changed +6
-2
lines changed
tests/run-make/inaccessible-temp-dir
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 13
13
// use a directory with non-existing parent like `/does-not-exist/output`.
14
14
// See https://github.com/rust-lang/rust/issues/66530
15
15
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.
16
21
//@ ignore-arm
17
22
// Reason: linker error on `armhf-gnu`
18
23
//@ ignore-windows
19
24
// Reason: `set_readonly` has no effect on directories
20
25
// and does not prevent modification.
21
26
22
- use run_make_support:: { fs_wrapper, rustc, target , test_while_readonly} ;
27
+ use run_make_support:: { fs_wrapper, rustc, test_while_readonly} ;
23
28
24
29
fn main ( ) {
25
30
// Create an inaccessible directory.
@@ -28,7 +33,6 @@ fn main() {
28
33
// Run rustc with `-Z temps-dir` set to a directory *inside* the inaccessible one,
29
34
// so that it can't create `tmp`.
30
35
rustc ( )
31
- . target ( target ( ) )
32
36
. input ( "program.rs" )
33
37
. arg ( "-Ztemps-dir=inaccessible/tmp" )
34
38
. run_fail ( )
You can’t perform that action at this time.
0 commit comments