- message("TEST_OUTPUT_FILE = ${TEST_OUTPUT_FILE}")
- file(READ "${TEST_OUTPUT_FILE}" COUNT)
- message("COUNT= ${COUNT}")
- math(EXPR COUNT "${COUNT} + 1")
- file(WRITE "${TEST_OUTPUT_FILE}" "${COUNT}")
- if(${COUNT} EQUAL 2)
- message(FATAL_ERROR "this test fails on the 2nd run")
- endif()
|