mirror of
https://github.com/reactos/CMake.git
synced 2024-11-24 12:09:48 +00:00
ENH: Make UpdateCVS test robust to 1s file time res
CVS clients recognize file modifications only if a file's timestamp is newer than its CVS/Entries line. This fixes intermittent failure of the test on filesystems with low timestamp resolution by delaying before creating a local modification.
This commit is contained in:
parent
d72743928e
commit
cd532b6132
@ -102,6 +102,13 @@ run_child(
|
||||
COMMAND ${CVSCMD} up -rRevision1
|
||||
)
|
||||
|
||||
# Delay 1 second so the modification produces a newer time stamp.
|
||||
find_program(SLEEP sleep)
|
||||
if(SLEEP)
|
||||
message("Delaying...")
|
||||
execute_process(COMMAND ${SLEEP} 1)
|
||||
endif()
|
||||
|
||||
# Create a modified file.
|
||||
modify_content(user-source)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user