[clang] 8a0f116 - Fix test trying to write a spurious output file into the source

Richard Smith via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 13 18:58:38 PDT 2021


Author: Richard Smith
Date: 2021-07-13T18:58:24-07:00
New Revision: 8a0f1163d02c77c6e764929b66c26ba196cfc549

URL: https://github.com/llvm/llvm-project/commit/8a0f1163d02c77c6e764929b66c26ba196cfc549
DIFF: https://github.com/llvm/llvm-project/commit/8a0f1163d02c77c6e764929b66c26ba196cfc549.diff

LOG: Fix test trying to write a spurious output file into the source
directory.

This causes test failures if the source directory is read-only.

Added: 
    

Modified: 
    clang/test/CodeGen/builtins-ppc-xlcompat-pwr9-64bit.c
    clang/test/CodeGen/builtins-ppc-xlcompat-pwr9.c

Removed: 
    


################################################################################
diff  --git a/clang/test/CodeGen/builtins-ppc-xlcompat-pwr9-64bit.c b/clang/test/CodeGen/builtins-ppc-xlcompat-pwr9-64bit.c
index bee48b022559..6dd96f4e2f88 100644
--- a/clang/test/CodeGen/builtins-ppc-xlcompat-pwr9-64bit.c
+++ b/clang/test/CodeGen/builtins-ppc-xlcompat-pwr9-64bit.c
@@ -4,9 +4,9 @@
 // RUN:   -target-cpu pwr9 -o - | FileCheck %s
 // RUN: %clang_cc1 -triple powerpc64-unknown-aix -emit-llvm %s \
 // RUN:   -target-cpu pwr9 -o - | FileCheck %s
-// RUN: not %clang_cc1 -triple powerpc-unknown-aix %s -emit-llvm %s \
+// RUN: not %clang_cc1 -triple powerpc-unknown-aix -emit-llvm-only %s \
 // RUN:   -target-cpu pwr9 2>&1 | FileCheck %s --check-prefix=CHECK-32-ERROR
-// RUN: not %clang_cc1 -triple powerpc64-unknown-aix -emit-llvm %s \
+// RUN: not %clang_cc1 -triple powerpc64-unknown-aix -emit-llvm-only %s \
 // RUN:   -target-cpu pwr8 2>&1 | FileCheck %s --check-prefix=CHECK-NONPWR9-ERR
 
 extern signed long long sll;

diff  --git a/clang/test/CodeGen/builtins-ppc-xlcompat-pwr9.c b/clang/test/CodeGen/builtins-ppc-xlcompat-pwr9.c
index e49bbaf5234c..bdce26a82dd2 100644
--- a/clang/test/CodeGen/builtins-ppc-xlcompat-pwr9.c
+++ b/clang/test/CodeGen/builtins-ppc-xlcompat-pwr9.c
@@ -6,7 +6,7 @@
 // RUN:   -target-cpu pwr9 -o - | FileCheck %s
 // RUN: %clang_cc1 -triple powerpc-unknown-aix %s -emit-llvm %s \
 // RUN:   -target-cpu pwr9 -o - | FileCheck %s
-// RUN: not %clang_cc1 -triple powerpc64-unknown-aix -emit-llvm %s \
+// RUN: not %clang_cc1 -triple powerpc64-unknown-aix -emit-llvm-only %s \
 // RUN:   -target-cpu pwr8 2>&1 | FileCheck %s --check-prefix=CHECK-NONPWR9-ERR
 
 extern unsigned int ui;


        


More information about the cfe-commits mailing list