From df0b995b92210b294ef1d51413695ac6b17f8b7b Mon Sep 17 00:00:00 2001 From: Jean-Christophe Fillion-Robin Date: Sun, 8 Apr 2012 16:09:16 -0400 Subject: [PATCH] On windows - Disable '--launcher-timeout' test. See #15 * This is motivated by the fact App4Test does not understand WM_CLOSE. --- Testing/Cpp/AppLauncherTest3.cmake | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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()