Files
swift-mirror/unittests/Basic/CMakeLists.txt
Ben Langmuir 350441d1e3 Fix ThreadSafeRefCountedBase*::Release()
C++ atomic's fetch_sub returns the previous value, where we want to
check the new value. This was causing massive memory leaks in SourceKit.

For ThreadSafeRefCountedBase, just switch to the one in LLVM that's
already correct.  We should move the VPTR one to LLVM as well and then
we can get rid of this header.

rdar://problem/27358273
2016-07-21 16:25:44 -07:00

34 lines
728 B
CMake

set(generated_tests UnicodeGraphemeBreakTest.cpp.gyb)
handle_gyb_sources(
gyb_dependency_targets
generated_tests
${SWIFT_HOST_VARIANT_ARCH})
add_swift_unittest(SwiftBasicTests
ADTTests.cpp
BlotMapVectorTest.cpp
ClusteredBitVectorTest.cpp
Demangle.cpp
EditorPlaceholderTest.cpp
EncodedSequenceTest.cpp
FileSystemTests.cpp
ImmutablePointerSetTests.cpp
PointerIntEnumTest.cpp
PrefixMapTest.cpp
SourceManager.cpp
StringExtrasTest.cpp
SuccessorMapTest.cpp
ThreadSafeRefCntPointerTests.cpp
TreeScopedHashTableTests.cpp
Unicode.cpp
${generated_tests}
)
add_dependencies(SwiftBasicTests "${gyb_dependency_targets}")
target_link_libraries(SwiftBasicTests
swiftBasic
clangBasic
)