Skip to content

Conversation

@rupprecht
Copy link
Collaborator

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.

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.
@llvmbot llvmbot added the clang Clang issues not falling into any other category label Dec 9, 2024
@llvmbot
Copy link
Member

llvmbot commented Dec 9, 2024

@llvm/pr-subscribers-clang

Author: Jordan Rupprecht (rupprecht)

Changes

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.


Full diff: https://github.com/llvm/llvm-project/pull/119285.diff

1 Files Affected:

  • (modified) clang/test/CodeGen/AArch64/fixed-register-global.c (+3-3)
diff --git a/clang/test/CodeGen/AArch64/fixed-register-global.c b/clang/test/CodeGen/AArch64/fixed-register-global.c
index a5e634310ec941..25c7aa254547be 100644
--- a/clang/test/CodeGen/AArch64/fixed-register-global.c
+++ b/clang/test/CodeGen/AArch64/fixed-register-global.c
@@ -2,13 +2,13 @@
 /// Regression test for #76426, #109778
 // REQUIRES: aarch64-registered-target
 
-// RUN: %clang -c --target=aarch64-none-gnu -ffixed-x15 %s 2>&1 | count 0
+// RUN: %clang -c --target=aarch64-none-gnu -ffixed-x15 %s -o /dev/null 2>&1 | count 0
 
-// RUN: not %clang -c --target=aarch64-none-gnu %s 2>&1 | \
+// RUN: not %clang -c --target=aarch64-none-gnu %s -o /dev/null 2>&1 | \
 // RUN:   FileCheck %s --check-prefix=ERR_INVREG
 // ERR_INVREG: error: register 'x15' unsuitable for global register variables on this target
 
-// RUN: not %clang -c --target=aarch64-none-gnu -ffixed-x15 -DTYPE=short %s 2>&1 | \
+// RUN: not %clang -c --target=aarch64-none-gnu -ffixed-x15 -DTYPE=short %s -o /dev/null 2>&1 | \
 // RUN:   FileCheck %s --check-prefix=ERR_SIZE
 // ERR_SIZE: error: size of register 'x15' does not match variable size
 

@rupprecht rupprecht merged commit a6b5e18 into llvm:main Dec 10, 2024
10 checks passed
@rupprecht rupprecht deleted the test-aarch-output-dir branch August 14, 2025 04:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clang Clang issues not falling into any other category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants