Tests: Allow RunCMake.CTestCommandLine/TestOutputSize to have larger file

This commit is contained in:
Kyle Edwards
2023-09-26 14:44:31 -04:00
committed by Brad King
parent 93e471f371
commit de446077f7

View File

@@ -1,6 +1,6 @@
file(GLOB test_xml_file "${RunCMake_TEST_BINARY_DIR}/Testing/*/Test.xml")
if(test_xml_file)
file(READ "${test_xml_file}" test_xml LIMIT 4096)
file(READ "${test_xml_file}" test_xml LIMIT 8192)
if("${test_xml}" MATCHES [[(<Test Status="passed">.*</Test>).*(<Test Status="failed">.*</Test>)]])
set(test_passed "${CMAKE_MATCH_1}")
set(test_failed "${CMAKE_MATCH_2}")