Skip to content

Commit 15233d3

Browse files
pranavkvar-const
authored andcommitted
[clang] Make tests write to /dev/null if output is not needed (llvm#135242)
We execute tests in read only environment which leads to test failure when tests try to write to the current directory. Either they should write to a temporary directory or not write if output is not needed. Fallback from llvm#134717
1 parent 0def743 commit 15233d3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clang/test/Driver/openacc-no-cir.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// RUN: %clang -fopenacc -S %s 2>&1 | FileCheck %s -check-prefix=ERROR
2-
// RUN: %clang -fclangir -fopenacc -S %s 2>&1 | FileCheck %s --allow-empty -check-prefix=NOERROR
3-
// RUN: %clang -fopenacc -fclangir -S %s 2>&1 | FileCheck %s --allow-empty -check-prefix=NOERROR
1+
// RUN: %clang -fopenacc -S %s -o /dev/null 2>&1 | FileCheck %s -check-prefix=ERROR
2+
// RUN: %clang -fclangir -fopenacc -S %s -o /dev/null 2>&1 | FileCheck %s --allow-empty -check-prefix=NOERROR
3+
// RUN: %clang -fopenacc -fclangir -S %s -o /dev/null 2>&1 | FileCheck %s --allow-empty -check-prefix=NOERROR
44

55
// ERROR: OpenACC directives will result in no runtime behavior; use -fclangir to enable runtime effect
66
// NOERROR-NOT: OpenACC directives

0 commit comments

Comments
 (0)