diff --git a/Testing/Cpp/AppLauncherTest3.cmake b/Testing/Cpp/AppLauncherTest3.cmake index 8fc1679..b4b597d 100644 --- a/Testing/Cpp/AppLauncherTest3.cmake +++ b/Testing/Cpp/AppLauncherTest3.cmake @@ -182,9 +182,17 @@ if(NOT rv) endif() # Since launcher-timeout < App4Test-timeout, file ${application}-timeout.txt should NOT exists -if(EXISTS ${application}-timeout.txt) +# Note: On windows, since out App4Test does NOT support the WM_CLOSE event, let's skip the test. +# See https://github.com/commontk/AppLauncher/issues/15 +set(_exists) +set(_exists_msg " NOT") +if(WIN32) + set(_exists NOT) + set(_exists_msg) +endif() +if(${_exists} EXISTS ${application}-timeout.txt) message(FATAL_ERROR "Test5d - Problem with flag --launcher-timeout. " - "File [${application}-timeout.txt] should NOT exist.") + "File [${application}-timeout.txt] should ${_exists_msg}exist.") endif()