r234533 - Use Linux sysroot in Driver test case from r234521

Reid Kleckner reid at kleckner.net
Thu Apr 9 13:37:38 PDT 2015


Author: rnk
Date: Thu Apr  9 15:37:38 2015
New Revision: 234533

URL: http://llvm.org/viewvc/llvm-project?rev=234533&view=rev
Log:
Use Linux sysroot in Driver test case from r234521

We don't actually need a real Mac sysroot to make the test pass, just a
linker.  This makes the test pass in environments where no ld is on
PATH.

Modified:
    cfe/trunk/test/Driver/sanitizer-ld.c

Modified: cfe/trunk/test/Driver/sanitizer-ld.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/sanitizer-ld.c?rev=234533&r1=234532&r2=234533&view=diff
==============================================================================
--- cfe/trunk/test/Driver/sanitizer-ld.c (original)
+++ cfe/trunk/test/Driver/sanitizer-ld.c Thu Apr  9 15:37:38 2015
@@ -276,6 +276,7 @@
 // RUN: %clangcxx -fsanitize=address %s -### -o %t.o 2>&1 \
 // RUN:     -mmacosx-version-min=10.6 \
 // RUN:     -target x86_64-apple-darwin13.4.0 \
+// RUN:     --sysroot=%S/Inputs/basic_linux_tree \
 // RUN:   | FileCheck --check-prefix=CHECK-ASAN-DARWIN106-CXX %s
 // CHECK-ASAN-DARWIN106-CXX: "{{.*}}ld{{(.exe)?}}"
 // CHECK-ASAN-DARWIN106-CXX: libclang_rt.asan_osx_dynamic.dylib





More information about the cfe-commits mailing list