[clang-tools-extra] r306656 - [clangd] Run a test, searching for gcc install, only on Unix.
Ilya Biryukov via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 29 02:22:32 PDT 2017
Author: ibiryukov
Date: Thu Jun 29 02:22:32 2017
New Revision: 306656
URL: http://llvm.org/viewvc/llvm-project?rev=306656&view=rev
Log:
[clangd] Run a test, searching for gcc install, only on Unix.
This should fix windows buildbots.
Modified:
clang-tools-extra/trunk/unittests/clangd/ClangdTests.cpp
Modified: clang-tools-extra/trunk/unittests/clangd/ClangdTests.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/unittests/clangd/ClangdTests.cpp?rev=306656&r1=306655&r2=306656&view=diff
==============================================================================
--- clang-tools-extra/trunk/unittests/clangd/ClangdTests.cpp (original)
+++ clang-tools-extra/trunk/unittests/clangd/ClangdTests.cpp Thu Jun 29 02:22:32 2017
@@ -408,6 +408,8 @@ TEST_F(ClangdVFSTest, CheckVersions) {
EXPECT_EQ(Server.codeComplete(FooCpp, Position{0, 0}).Tag, FS.Tag);
}
+// Only enable this test on Unix
+#ifdef LLVM_ON_UNIX
TEST_F(ClangdVFSTest, SearchLibDir) {
// Checks that searches for GCC installation is done through vfs.
MockFSProvider FS;
@@ -454,6 +456,7 @@ std::string x;
Server.addDocument(FooCpp, SourceContentsWithError);
EXPECT_TRUE(DiagConsumer.hadErrorInLastDiags());
}
+#endif // LLVM_ON_UNIX
class ClangdCompletionTest : public ClangdVFSTest {
protected:
More information about the cfe-commits
mailing list