summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/ctest_test/TestRepeatNotRun.cmake
blob: abde4f01170f4395d72f199f84c73cb57e866ea1 (plain)
1
2
3
4
5
6
7
8
9
10
include("${COUNT_FILE}" OPTIONAL)
if(NOT COUNT)
  set(COUNT 0)
endif()
math(EXPR COUNT "${COUNT} + 1")
file(WRITE "${COUNT_FILE}" "set(COUNT ${COUNT})\n")
if(NOT COUNT EQUAL 2)
  message("this test times out except on the 2nd run")
  execute_process(COMMAND ${CMAKE_COMMAND} -E sleep 10)
endif()