1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00
llvm-mirror/unittests/ObjectYAML/CMakeLists.txt
Xing GUO 81f234a2c6 [ObjectYAML][DWARF] Collect diagnostic message when YAMLParser fails.
Before this patch, the diagnostic message is printed to `errs()` directly, which makes it difficult to use `FailedWithMessage()` in unit testing.
In this patch, we add a custom error handler for YAMLParser, which helps collect diagnostic messages and make it easy to use `FailedWithMessage()` to check error messages.

Reviewed By: jhenderson, MaskRay

Differential Revision: https://reviews.llvm.org/D82630
2020-06-29 16:13:53 +08:00

15 lines
252 B
CMake

set(LLVM_LINK_COMPONENTS
Object
ObjectYAML
)
add_llvm_unittest(ObjectYAMLTests
DWARFYAMLTest.cpp
ELFYAMLTest.cpp
MinidumpYAMLTest.cpp
YAML2ObjTest.cpp
YAMLTest.cpp
)
target_link_libraries(ObjectYAMLTests PRIVATE LLVMTestingSupport)