Skip to content

Commit

Permalink
[libpng16] test: Tidy up the logging of test program arguments in CTest
Browse files Browse the repository at this point in the history
This is a cherry-pick of commit 2e416c6
from branch 'libpng18'.
  • Loading branch information
ctruta committed Oct 6, 2024
1 parent 642b5d8 commit 9ee8238
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/cmake/test.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ if(WIN32)
set(ENV{PATH} "${LIBPNG_DIR};$ENV{PATH}")
endif()

message("Running ${TEST_COMMAND}" ${TEST_OPTIONS} ${NATIVE_TEST_FILES})
string(JOIN " " TEST_COMMAND_STRING "${TEST_COMMAND}" ${TEST_OPTIONS} ${NATIVE_TEST_FILES})
message(STATUS "Running ${TEST_COMMAND_STRING}")
execute_process(COMMAND "${TEST_COMMAND}" ${TEST_OPTIONS} ${NATIVE_TEST_FILES}
RESULT_VARIABLE TEST_STATUS)
if(TEST_STATUS)
Expand Down

0 comments on commit 9ee8238

Please sign in to comment.