Skip to content

Commit

Permalink
On windows - Disable '--launcher-timeout' test. See commontk#15
Browse files Browse the repository at this point in the history
* This is motivated by the fact App4Test does not understand WM_CLOSE.
  • Loading branch information
jcfr committed Apr 8, 2012
1 parent 5d56295 commit df0b995
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions Testing/Cpp/AppLauncherTest3.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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()


0 comments on commit df0b995

Please sign in to comment.