CMake: Output test logs on failure

This commit is contained in:
TellowKrinkle 2023-01-28 23:44:50 -06:00 committed by refractionpcsx2
parent b90405a7d2
commit 58959b6114
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
enable_testing() enable_testing()
add_custom_target(unittests) add_custom_target(unittests)
add_custom_command(TARGET unittests POST_BUILD COMMAND ${CMAKE_CTEST_COMMAND}) add_custom_command(TARGET unittests POST_BUILD COMMAND ${CMAKE_CTEST_COMMAND} --output-on-failure)
macro(add_pcsx2_test target) macro(add_pcsx2_test target)
add_executable(${target} EXCLUDE_FROM_ALL ${ARGN}) add_executable(${target} EXCLUDE_FROM_ALL ${ARGN})