]> granicus.if.org Git - clang/commitdiff
Add some entropy to the folder name in Driver/warning-options.cpp.
authorZachary Turner <zturner@google.com>
Tue, 20 Sep 2016 18:41:19 +0000 (18:41 +0000)
committerZachary Turner <zturner@google.com>
Tue, 20 Sep 2016 18:41:19 +0000 (18:41 +0000)
It was trying to check that things behave correctly when a
non-existant folder was specified for -isysroot.  Incidentally,
I have a folder named FOO in the root of my drive, so this test
was failing.  Make this impossible by using %T to refer to a
definitely non-existant folder.:

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

test/Driver/warning-options.cpp

index 4d9e1f7466debd719cabdc09d56a7344f7342936..73b5d23ccda0d4ab444b460c9a992e02ec5a3af9 100644 (file)
@@ -4,5 +4,5 @@
 // LARGE_VALUE_COPY_JOINED: -Wlarge-by-value-copy=128
 
 // Check that -isysroot warns on nonexistent paths.
-// RUN: %clang -### -c -target i386-apple-darwin10 -isysroot /FOO %s 2>&1 | FileCheck --check-prefix=CHECK-ISYSROOT %s
-// CHECK-ISYSROOT: warning: no such sysroot directory: '{{([A-Za-z]:.*)?}}/FOO'
+// RUN: %clang -### -c -target i386-apple-darwin10 -isysroot %T/warning-options %s 2>&1 | FileCheck --check-prefix=CHECK-ISYSROOT %s
+// CHECK-ISYSROOT: warning: no such sysroot directory: '{{([A-Za-z]:.*)?}}/warning-options'