Commit cd532b61 authored by Brad King's avatar Brad King

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.
parent d7274392
......@@ -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)
execute_process(COMMAND ${SLEEP} 1)
# Create a modified file.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment