From d64c363f35b98ab9750a3c3a5828d8df011a4a45 Mon Sep 17 00:00:00 2001 From: Dmitri Gribenko Date: Wed, 9 Aug 2023 15:55:37 +0200 Subject: [PATCH] [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. --- clang/test/CodeGen/LoongArch/intrinsic-la32-error.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/test/CodeGen/LoongArch/intrinsic-la32-error.c b/clang/test/CodeGen/LoongArch/intrinsic-la32-error.c index db113a13eb5a..026a2db00889 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