[clang] [clang] changes where a test writes its output (PR #73560)

via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 27 12:28:09 PST 2023


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang

Author: Christopher Di Bella (cjdb)

<details>
<summary>Changes</summary>

Writing directly to /dev/null has permission issues on some systems, so we've changed this to a temporary file instead.

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


1 Files Affected:

- (modified) clang/test/OpenMP/dispatch_unsupported.c (+1-1) 


``````````diff
diff --git a/clang/test/OpenMP/dispatch_unsupported.c b/clang/test/OpenMP/dispatch_unsupported.c
index fe7ccfa90a5831a..729c046e2635ee4 100644
--- a/clang/test/OpenMP/dispatch_unsupported.c
+++ b/clang/test/OpenMP/dispatch_unsupported.c
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -emit-llvm -fopenmp -disable-llvm-passes %s -o /dev/null -verify=expected
+// RUN: %clang_cc1 -emit-llvm -fopenmp -disable-llvm-passes %s -o %t -verify=expected
 
 // expected-error at +2 {{cannot compile this OpenMP dispatch directive yet}}
 void a(){

``````````

</details>


https://github.com/llvm/llvm-project/pull/73560


More information about the cfe-commits mailing list