You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmake/match.cmake
+4-8Lines changed: 4 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -61,7 +61,7 @@ elseif(${MODE} STREQUAL "file")
61
61
endif()
62
62
63
63
if(TEST_RESULT)
64
-
message(FATAL_ERROR"Failed: Test ${TEST_FILE}${TEST_ARGS} returned non-zero (${TEST_RESULT}).")
64
+
message(FATAL_ERROR"Failed: Test command '${TEST_FILE}${TEST_ARGS}' returned non-zero (${TEST_RESULT}).")
65
65
endif()
66
66
67
67
# Compare the output file contents with a match file contents
@@ -71,11 +71,7 @@ execute_process(
71
71
)
72
72
73
73
if(TEST_RESULT)
74
-
message(FATAL_ERROR"Failed (${TEST_RESULT}): The output of ${OUT_FILE} does not match ${MATCH_FILE}")
75
-
elseif()
76
-
message("Passed: The output ${OUT_FILE} matches ${MATCH_FILE}")
77
-
endif()
78
-
79
-
if(EXISTS${OUT_FILE})
80
-
file(REMOVE${OUT_FILE})
74
+
message(FATAL_ERROR"Failed (${TEST_RESULT}): The output of test command '${TEST_FILE}${TEST_ARGS}' (stored in ${CMAKE_CURRENT_BINARY_DIR}/${OUT_FILE}) does not match '${MATCH_FILE}'")
75
+
else()
76
+
message("Passed: The output of test command '${TEST_FILE}${TEST_ARGS}' (stored in ${CMAKE_CURRENT_BINARY_DIR}/${OUT_FILE}) matches '${MATCH_FILE}'")
0 commit comments