Skip to content

Commit 6327f1c

Browse files
committed
[clang] Shard out some small gtest binaries
@nico mentioned that FormatTests and BasicTests are small binaries with few dependencies, so keeping them separate is nice. I broke them out as distinct test binaries, and they are still pretty small: $ find tools/clang/unittests/ -type f -name '*Tests' | xargs du -cksh | sort -nr 708M total 276M tools/clang/unittests/AllClangUnitTests 244M tools/clang/unittests/Interpreter/ClangReplInterpreterTests 167M tools/clang/unittests/Interpreter/ExceptionTests/ClangReplInterpreterExceptionTests 13M tools/clang/unittests/Format/FormatTests 6.9M tools/clang/unittests/Basic/BasicTests 1.1M tools/clang/unittests/libclang/CrashTests/libclangCrashTests I also broke out libclangCrashTests and re-enabled the failing test to resolve llvm#137855.
1 parent b02f2e8 commit 6327f1c

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

clang/unittests/Basic/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
add_clang_unittest(BasicTests
1+
add_distinct_clang_unittest(BasicTests
22
CharInfoTest.cpp
33
DarwinSDKInfoTest.cpp
44
DiagnosticTest.cpp

clang/unittests/Format/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
add_clang_unittest(FormatTests
1+
add_distinct_clang_unittest(FormatTests
22
BracesInserterTest.cpp
33
BracesRemoverTest.cpp
44
CleanupTest.cpp

clang/unittests/libclang/CrashTests/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
add_clang_unittest(libclangCrashTests
1+
add_distinct_clang_unittest(libclangCrashTests
22
LibclangCrashTest.cpp
33
LINK_LIBS
44
libclang

clang/unittests/libclang/CrashTests/LibclangCrashTest.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ TEST_F(LibclangParseTest, InstallAbortingLLVMFatalErrorHandler) {
2323
"");
2424
}
2525

26-
// FIXME: Re-enable after Mac-AArch64 signpost crash issues are debugged.
27-
TEST_F(LibclangParseTest, DISABLED_UninstallAbortingLLVMFatalErrorHandler) {
26+
TEST_F(LibclangParseTest, UninstallAbortingLLVMFatalErrorHandler) {
2827
clang_toggleCrashRecovery(0);
2928
clang_install_aborting_llvm_fatal_error_handler();
3029
clang_uninstall_llvm_fatal_error_handler();

0 commit comments

Comments
 (0)