mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-09 07:11:05 -06:00
GoogleTest: Modify test to verify that empty files can be scanned
The modified test confirms the bug described in issue #18321.
This commit is contained in:
@@ -44,12 +44,13 @@ endif()
|
||||
set_tests_properties(set2.GoogleTest.ConditionalFail.foo PROPERTIES WILL_FAIL YES)
|
||||
|
||||
|
||||
# Search specific sources to get the test list
|
||||
add_executable(test_gtest2 main2.cxx)
|
||||
# Search specific sources to get the test list. Include an empty file
|
||||
# to ensure they are handled correctly too.
|
||||
add_executable(test_gtest2 main2.cxx empty.cxx)
|
||||
target_link_libraries(test_gtest2 GTest::Main)
|
||||
gtest_add_tests(TARGET test_gtest2
|
||||
TEST_LIST testList
|
||||
SOURCES main2.h
|
||||
SOURCES main2.h empty.cxx
|
||||
)
|
||||
set(expectedTests
|
||||
GoogleTest.SomethingElse
|
||||
|
||||
0
Tests/GoogleTest/Test/empty.cxx
Normal file
0
Tests/GoogleTest/Test/empty.cxx
Normal file
Reference in New Issue
Block a user