[msan+tsan] Bring back the tests that disappeared after r260230 and r259512.
authorDaniel Sanders <daniel.sanders@imgtec.com>
Fri, 12 Feb 2016 10:35:53 +0000 (10:35 +0000)
committerDaniel Sanders <daniel.sanders@imgtec.com>
Fri, 12 Feb 2016 10:35:53 +0000 (10:35 +0000)
The lit test-suite containing the unit tests needs to be explicitly specified
as an argument to lit.py since it is no longer discovered when the other tests
are run (because they are one directory deeper).

dfsan, lsan, and sanitizer_common don't show the same problem.

llvm-svn: 260669

compiler-rt/test/msan/CMakeLists.txt
compiler-rt/test/tsan/CMakeLists.txt

index ba41546..00638b3 100644 (file)
@@ -41,7 +41,7 @@ if(COMPILER_RT_INCLUDE_TESTS AND COMPILER_RT_HAS_LIBCXX_SOURCES)
 endif()
 
 add_lit_testsuite(check-msan "Running the MemorySanitizer tests"
-  ${MSAN_TESTSUITES}
+  ${MSAN_TESTSUITES} ${CMAKE_CURRENT_BINARY_DIR}/Unit
   DEPENDS ${MSAN_TEST_DEPS}
   )
 set_target_properties(check-msan PROPERTIES FOLDER "MSan tests")
index f45a6fc..39f8be0 100644 (file)
@@ -50,6 +50,6 @@ if(COMPILER_RT_INCLUDE_TESTS)
 endif()
 
 add_lit_testsuite(check-tsan "Running ThreadSanitizer tests"
-  ${TSAN_TESTSUITES}
+  ${TSAN_TESTSUITES} ${CMAKE_CURRENT_BINARY_DIR}/Unit
   DEPENDS ${TSAN_TEST_DEPS})
 set_target_properties(check-tsan PROPERTIES FOLDER "TSan tests")