r367253 - [driver][test] Update as-options.s to not write to a readonly tree
Jordan Rupprecht via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 29 12:57:32 PDT 2019
Author: rupprecht
Date: Mon Jul 29 12:57:31 2019
New Revision: 367253
URL: http://llvm.org/viewvc/llvm-project?rev=367253&view=rev
Log:
[driver][test] Update as-options.s to not write to a readonly tree
The as-options.s test writes to the build tree as of r367165. Some build systems configure this to be readonly, so this fails. Explicitly write to the output tree using `%t` to avoid this.
Modified:
cfe/trunk/test/Driver/as-options.s
Modified: cfe/trunk/test/Driver/as-options.s
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/as-options.s?rev=367253&r1=367252&r2=367253&view=diff
==============================================================================
--- cfe/trunk/test/Driver/as-options.s (original)
+++ cfe/trunk/test/Driver/as-options.s Mon Jul 29 12:57:31 2019
@@ -74,12 +74,13 @@
// -Wa flags shouldn't cause warnings without an assembler stage with
// -fno-integrated-as either.
// RUN: %clang -Wa,-mno-warn-deprecated -fno-integrated-as -x c++ %s -S 2>&1 \
+// RUN: -o %t.o \
// RUN: | FileCheck --check-prefix=NOWARN --allow-empty %s
// But -m flags for the integrated assembler _should_ warn if the integrated
// assembler is not in use.
-// RUN: %clang -mrelax-all -fintegrated-as -x c++ %s -S 2>&1 \
+// RUN: %clang -mrelax-all -fintegrated-as -x c++ %s -S -o %t.o 2>&1 \
// RUN: | FileCheck --check-prefix=NOWARN --allow-empty %s
-// RUN: %clang -mrelax-all -fno-integrated-as -x c++ %s -S 2>&1 \
+// RUN: %clang -mrelax-all -fno-integrated-as -x c++ %s -S -o %t.o 2>&1 \
// RUN: | FileCheck --check-prefix=WARN --allow-empty %s
// WARN: unused
More information about the cfe-commits
mailing list