Enable ReparseWithModule only if threads
Yaron Keren
yaron.keren at gmail.com
Mon Jul 6 01:43:03 PDT 2015
This addresses http://llvm.org/pr20325, this unit test fails when threads
are disabled.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150706/33c3dbd6/attachment.html>
-------------- next part --------------
Index: tools/clang/unittests/libclang/LibclangTest.cpp
===================================================================
--- tools/clang/unittests/libclang/LibclangTest.cpp (revision 241427)
+++ tools/clang/unittests/libclang/LibclangTest.cpp (working copy)
@@ -431,6 +431,7 @@
EXPECT_EQ(0U, clang_getNumDiagnostics(ClangTU));
}
+#if LLVM_ENABLE_THREADS
TEST_F(LibclangReparseTest, ReparseWithModule) {
const char *HeaderTop = "#ifndef H\n#define H\nstruct Foo { int bar;";
const char *HeaderBottom = "\n};\n#endif\n";
@@ -465,3 +466,4 @@
ASSERT_TRUE(ReparseTU(0, nullptr /* No unsaved files. */));
EXPECT_EQ(0U, clang_getNumDiagnostics(ClangTU));
}
+#endif
More information about the cfe-commits
mailing list