Skip to content

Commit a6b5e18

Browse files
authored
[test][clang][AArch64] Don't assume current dir is writeable (#119285)
afa2fbf adds a test which can fail with `error: unable to open output file 'fixed-register-global.o': 'Permission denied'`. We don't check the output file at all, so just use /dev/null.
1 parent 95b6524 commit a6b5e18

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clang/test/CodeGen/AArch64/fixed-register-global.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
/// Regression test for #76426, #109778
33
// REQUIRES: aarch64-registered-target
44

5-
// RUN: %clang -c --target=aarch64-none-gnu -ffixed-x15 %s 2>&1 | count 0
5+
// RUN: %clang -c --target=aarch64-none-gnu -ffixed-x15 %s -o /dev/null 2>&1 | count 0
66

7-
// RUN: not %clang -c --target=aarch64-none-gnu %s 2>&1 | \
7+
// RUN: not %clang -c --target=aarch64-none-gnu %s -o /dev/null 2>&1 | \
88
// RUN: FileCheck %s --check-prefix=ERR_INVREG
99
// ERR_INVREG: error: register 'x15' unsuitable for global register variables on this target
1010

11-
// RUN: not %clang -c --target=aarch64-none-gnu -ffixed-x15 -DTYPE=short %s 2>&1 | \
11+
// RUN: not %clang -c --target=aarch64-none-gnu -ffixed-x15 -DTYPE=short %s -o /dev/null 2>&1 | \
1212
// RUN: FileCheck %s --check-prefix=ERR_SIZE
1313
// ERR_SIZE: error: size of register 'x15' does not match variable size
1414

0 commit comments

Comments
 (0)