summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/GoogleTest/GoogleTest-discovery-check-test-list.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-02-14 14:57:48 (GMT)
committerKitware Robot <kwrobot@kitware.com>2022-02-14 14:58:01 (GMT)
commitec92b6dd1456ba95a0926ee0038d739d9d3b5cca (patch)
tree54b3d6741c89a55c6e831ab4589a44a4dbc57946 /Tests/RunCMake/GoogleTest/GoogleTest-discovery-check-test-list.cmake
parent2fa4395bf3faf55fe060c33905863af3c0129744 (diff)
parent61929f936f3a834a99762aafaf79f9f1ce9cf6d6 (diff)
downloadCMake-ec92b6dd1456ba95a0926ee0038d739d9d3b5cca.zip
CMake-ec92b6dd1456ba95a0926ee0038d739d9d3b5cca.tar.gz
CMake-ec92b6dd1456ba95a0926ee0038d739d9d3b5cca.tar.bz2
Merge topic 'GoogleTest-discovery-fix-escaping'
61929f936f GoogleTest: Fix escaping in test names Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6965
Diffstat (limited to 'Tests/RunCMake/GoogleTest/GoogleTest-discovery-check-test-list.cmake')
-rw-r--r--Tests/RunCMake/GoogleTest/GoogleTest-discovery-check-test-list.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/RunCMake/GoogleTest/GoogleTest-discovery-check-test-list.cmake b/Tests/RunCMake/GoogleTest/GoogleTest-discovery-check-test-list.cmake
new file mode 100644
index 0000000..94169e7
--- /dev/null
+++ b/Tests/RunCMake/GoogleTest/GoogleTest-discovery-check-test-list.cmake
@@ -0,0 +1,6 @@
+list(LENGTH test_list_test_TESTS LIST_SIZE)
+set(EXPECTED_SIZE 2)
+if(NOT LIST_SIZE EQUAL ${EXPECTED_SIZE})
+ message("TEST_LIST should have ${EXPECTED_SIZE} elements but it has ${LIST_SIZE}")
+ message("The unexpected list: [${test_list_test_TESTS}]")
+endif()