[clang-tools-extra] r359489 - [clangd][xpc] Fix XPC unittests

Jan Korous via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 29 12:41:30 PDT 2019


Author: jkorous
Date: Mon Apr 29 12:41:30 2019
New Revision: 359489

URL: http://llvm.org/viewvc/llvm-project?rev=359489&view=rev
Log:
[clangd][xpc] Fix XPC unittests

Fix build after recent changes in clangd tests & add xpc unittests to
check-clangd target.

Differential Revision: https://reviews.llvm.org/D61271

Modified:
    clang-tools-extra/trunk/clangd/test/CMakeLists.txt
    clang-tools-extra/trunk/clangd/unittests/xpc/CMakeLists.txt

Modified: clang-tools-extra/trunk/clangd/test/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/test/CMakeLists.txt?rev=359489&r1=359488&r2=359489&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/test/CMakeLists.txt (original)
+++ clang-tools-extra/trunk/clangd/test/CMakeLists.txt Mon Apr 29 12:41:30 2019
@@ -8,6 +8,7 @@ set(CLANGD_TEST_DEPS
 
 if(CLANGD_BUILD_XPC)
   list(APPEND CLANGD_TEST_DEPS clangd-xpc-test-client)
+  list(APPEND CLANGD_TEST_DEPS ClangdXpcUnitTests)
 endif()
 
 foreach(dep FileCheck count not)

Modified: clang-tools-extra/trunk/clangd/unittests/xpc/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/unittests/xpc/CMakeLists.txt?rev=359489&r1=359488&r2=359489&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/unittests/xpc/CMakeLists.txt (original)
+++ clang-tools-extra/trunk/clangd/unittests/xpc/CMakeLists.txt Mon Apr 29 12:41:30 2019
@@ -8,7 +8,8 @@ include_directories(
   ${CLANGD_SOURCE_DIR}
   )
 
-add_extra_unittest(ClangdXpcTests
+add_custom_target(ClangdXpcUnitTests)
+add_unittest(ClangdXpcUnitTests ClangdXpcTests
   ConversionTests.cpp
   )
 




More information about the cfe-commits mailing list