From 7382066bc6aa66a510cdf95d65798d9cc74eb78b Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Wed, 16 Jan 2019 22:05:34 +0000 Subject: [PATCH] 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. llvm-svn: 351383 --- .../clang-check-mac-libcxx-fixed-compilation-db.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/clang/test/Tooling/clang-check-mac-libcxx-fixed-compilation-db.cpp b/clang/test/Tooling/clang-check-mac-libcxx-fixed-compilation-db.cpp index 8c59a2f07f69..3778c395cd10 100644 --- a/clang/test/Tooling/clang-check-mac-libcxx-fixed-compilation-db.cpp +++ b/clang/test/Tooling/clang-check-mac-libcxx-fixed-compilation-db.cpp @@ -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 vector v;