[clang] [llvm] [test] Avoid writing to a potentially write-protected dir (PR #89242)

Karl-Johan Karlsson via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 18 23:27:34 PDT 2024


================
@@ -1,5 +1,5 @@
 
-// RUN: %clang_cc1 -finclude-default-header -triple dxil-pc-shadermodel6.6-library %s -fnative-half-type -emit-llvm -disable-llvm-passes -verify -verify-ignore-unexpected
+// RUN: %clang_cc1 -finclude-default-header -triple dxil-pc-shadermodel6.6-library %s -fnative-half-type -emit-llvm -disable-llvm-passes -verify -verify-ignore-unexpected -o /dev/null
----------------
karka228 wrote:

Removing `-emit-llvm` will expose more of the compiler pipeline to the testcases and some testcases seems not to be designed to work with that. Instead I found out that there is another option `-emit-llvm-only` that seems to be designed to be used together with `-verify` as it to the same thing as `-emit-llvm` except that it don't produce any output.

Is that an acceptable solution?

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


More information about the cfe-commits mailing list