Skip to content

Commit 18cb3c7

Browse files
committed
try to fix dos...
1 parent 28cec09 commit 18cb3c7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/gwb-dat/run_gwb-dat_tests.cmake

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,14 @@ String(REGEX REPLACE "Starting the World Builder with ([0-9]*) threads..." "Star
5858
file(WRITE ${TEST_OUTPUT} ${TEST_OUTPUT_PROCESSED})
5959

6060
if( TEST_RESULT_VAR )
61-
String(REGEX REPLACE "(.*)AssertThrow `(.*)` failed in (.*)/source/([^ )(]*) at line ([01234567890]*): (.*)" "AssertThrow `(..error type..)` failed in (..path..)/source/\\4 at line (..line..): \\6" TEST_ERROR_VAR_PROCESSED "${TEST_ERROR_VAR}")
61+
Message(STATUS "RAW test result var = ${TEST_ERROR_VAR}")
62+
String(REGEX REPLACE "(.*)AssertThrow `(.*)` failed in (.*)source([^ )(]*) at line ([01234567890]*): (.*)" "AssertThrow `(..error type..)` failed in (..path..)/source\\4 at line (..line..): \\6" TEST_ERROR_VAR_PROCESSED "${TEST_ERROR_VAR}")
6263
string(FIND "${TEST_ERROR_VAR_PROCESSED}" "AssertThrow" FIRST_BRACKET)
6364
string(FIND "${TEST_ERROR_VAR_PROCESSED}" "Error not recoverable, aborting program." LAST_BRACKET REVERSE)
6465
MATH(EXPR LAST_BRACKET ${LAST_BRACKET})
6566
string(SUBSTRING "${TEST_ERROR_VAR_PROCESSED}" "${FIRST_BRACKET}" "${LAST_BRACKET}" TEST_ERROR_VAR_PROCESSED)
6667
string(REGEX REPLACE "Could not open file <[:/a-zA-Z\\/0-9_\\.-]*>" "Could not open file <..file..>" TEST_ERROR_VAR_PROCESSED "${TEST_ERROR_VAR_PROCESSED}")
68+
Message(STATUS "PROCESSED test result var = ${TEST_ERROR_VAR_PROCESSED}")
6769
file(APPEND ${TEST_OUTPUT} "Expected fail with: \n${TEST_ERROR_VAR_PROCESSED}")
6870
endif()
6971

0 commit comments

Comments
 (0)