r351383 - Fix libc++ mac driver test to pass on Windows

Reid Kleckner via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 16 14:05:35 PST 2019


Author: rnk
Date: Wed Jan 16 14:05:34 2019
New Revision: 351383

URL: http://llvm.org/viewvc/llvm-project?rev=351383&view=rev
Log:
Fix libc++ mac driver test to pass on Windows

There is a substitution for 'clang-check' to absolutize it, so the
'$(which clang-check)' is unnecessary.

Modified:
    cfe/trunk/test/Tooling/clang-check-mac-libcxx-fixed-compilation-db.cpp

Modified: cfe/trunk/test/Tooling/clang-check-mac-libcxx-fixed-compilation-db.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Tooling/clang-check-mac-libcxx-fixed-compilation-db.cpp?rev=351383&r1=351382&r2=351383&view=diff
==============================================================================
--- cfe/trunk/test/Tooling/clang-check-mac-libcxx-fixed-compilation-db.cpp (original)
+++ cfe/trunk/test/Tooling/clang-check-mac-libcxx-fixed-compilation-db.cpp Wed Jan 16 14:05:34 2019
@@ -8,9 +8,8 @@
 // Install the mock libc++ (simulates the libc++ directory structure).
 // RUN: cp -r %S/Inputs/mock-libcxx %t/
 //
-// RUN: cp $(which clang-check) %t/mock-libcxx/bin/
-// RUN: cp "%s" "%t/test.cpp"
-// RUN: %t/mock-libcxx/bin/clang-check -p "%t" "%t/test.cpp" -- -stdlib=libc++ -target x86_64-apple-darwin
-// REQUIRES: system-darwin
+// RUN: cp clang-check %t/mock-libcxx/bin/
+// RUN: cp %s %t/test.cpp
+// RUN: "%t/mock-libcxx/bin/clang-check" -p %t %t/test.cpp -- -stdlib=libc++ -target x86_64-apple-darwin
 #include <mock_vector>
 vector v;




More information about the cfe-commits mailing list