[clang] d64c363 - [Clang][LoongArch] Add '-o /dev/null' to a test that does not care about the output
Dmitri Gribenko via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 9 07:07:50 PDT 2023
Author: Dmitri Gribenko
Date: 2023-08-09T16:07:41+02:00
New Revision: d64c363f35b98ab9750a3c3a5828d8df011a4a45
URL: https://github.com/llvm/llvm-project/commit/d64c363f35b98ab9750a3c3a5828d8df011a4a45
DIFF: https://github.com/llvm/llvm-project/commit/d64c363f35b98ab9750a3c3a5828d8df011a4a45.diff
LOG: [Clang][LoongArch] Add '-o /dev/null' to a test that does not care about the output
Tests should not write to the CWD because it might not be writeable.
Either use %t, or /dev/null if the test does not check the output.
Added:
Modified:
clang/test/CodeGen/LoongArch/intrinsic-la32-error.c
Removed:
################################################################################
diff --git a/clang/test/CodeGen/LoongArch/intrinsic-la32-error.c b/clang/test/CodeGen/LoongArch/intrinsic-la32-error.c
index db113a13eb5a95..026a2db0088920 100644
--- a/clang/test/CodeGen/LoongArch/intrinsic-la32-error.c
+++ b/clang/test/CodeGen/LoongArch/intrinsic-la32-error.c
@@ -1,5 +1,5 @@
// RUN: %clang_cc1 -triple loongarch32 -emit-llvm -S -verify %s -o /dev/null
-// RUN: not %clang_cc1 -triple loongarch32 -DFEATURE_CHECK -emit-llvm %s 2>&1 \
+// RUN: not %clang_cc1 -triple loongarch32 -DFEATURE_CHECK -emit-llvm %s -o /dev/null 2>&1 \
// RUN: | FileCheck %s
#include <larchintrin.h>
More information about the cfe-commits
mailing list