Remove test temporary file

This commit is contained in:
Seas0 2022-01-07 15:59:21 +08:00
parent 5d0fdf01f3
commit e2f3752018

View File

@ -52,5 +52,10 @@ if( TEST_RESULT )
message( FATAL_ERROR "Failed: The output of ${TEST_PROGRAM} did not match ${TEST_REFERENCE}") message( FATAL_ERROR "Failed: The output of ${TEST_PROGRAM} did not match ${TEST_REFERENCE}")
endif( TEST_RESULT ) endif( TEST_RESULT )
# remove the temporary files if they exist
if( EXISTS ${TEST_OUTPUT} )
file(REMOVE "${TEST_OUTPUT}")
endif()
# everything went fine... # everything went fine...
message( "Passed: The output of ${TEST_PROGRAM} matches ${TEST_REFERENCE}" ) message( "Passed: The output of ${TEST_PROGRAM} matches ${TEST_REFERENCE}" )