Sign in
fuchsia
/
third_party
/
cmake
/
0e7c1f44516de3e9b85e30af4559e526e8218613
/
.
/
Tests
/
RunCMake
/
ctest_test
/
TestRepeatUntilPass.cmake
blob: 066252217531a8b7476c0004a8eb86f33ffc57b8 [
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
(
NOT COUNT EQUAL
2
)
message
(
FATAL_ERROR
"this test passes only on the 2nd run"
)
endif
()