From d4d38d0fa7942dea852c3f87cab0622978b9c901 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@351383 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../clang-check-mac-libcxx-fixed-compilation-db.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/test/Tooling/clang-check-mac-libcxx-fixed-compilation-db.cpp b/test/Tooling/clang-check-mac-libcxx-fixed-compilation-db.cpp index 8c59a2f07f..3778c395cd 100644 --- a/test/Tooling/clang-check-mac-libcxx-fixed-compilation-db.cpp +++ b/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; -- 2.40.0