From 616f1168fa0e010533e15c96775097913152f016 Mon Sep 17 00:00:00 2001 From: Zachary Turner Date: Tue, 20 Sep 2016 18:41:19 +0000 Subject: [PATCH] Add some entropy to the folder name in Driver/warning-options.cpp. 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/Driver/warning-options.cpp b/test/Driver/warning-options.cpp index 4d9e1f7466..73b5d23ccd 100644 --- a/test/Driver/warning-options.cpp +++ b/test/Driver/warning-options.cpp @@ -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' -- 2.40.0