]> granicus.if.org Git - clang/commitdiff
[driver][test] Update as-options.s to not write to a readonly tree
authorJordan Rupprecht <rupprecht@google.com>
Mon, 29 Jul 2019 19:57:31 +0000 (19:57 +0000)
committerJordan Rupprecht <rupprecht@google.com>
Mon, 29 Jul 2019 19:57:31 +0000 (19:57 +0000)
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@367253 91177308-0d34-0410-b5e6-96231b3b80d8

test/Driver/as-options.s

index 956f07ac0f21da88cd00b1d420a3195342aa14d3..8f12296e5275330c91b6b54aa729d7d60488a805 100644 (file)
 // -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