Sign in
fuchsia
/
third_party
/
cmake
/
cc4c0be5185e91c3ae71c9d68a6723dc31f3d026
/
.
/
Tests
/
RunCMake
/
ctest_test
/
TestRepeatUntilFail.cmake
blob: 5eb0d8a9f0a0a7b9e7aff76c0840b0cd8fe150fe [
file
] [
log
] [
blame
]
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
(
COUNT EQUAL
2
)
message
(
FATAL_ERROR
"this test fails on the 2nd run"
)
endif
()