[Cmake-commits] [cmake-commits] king committed CTestUpdateCVS.cmake.in 1.3 1.4

cmake-commits at cmake.org cmake-commits at cmake.org
Wed Apr 8 09:22:01 EDT 2009


Update of /cvsroot/CMake/CMake/Tests
In directory public:/mounts/ram/cvs-serv29325/Tests

Modified Files:
	CTestUpdateCVS.cmake.in 
Log Message:
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.


Index: CTestUpdateCVS.cmake.in
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/CTestUpdateCVS.cmake.in,v
retrieving revision 1.3
retrieving revision 1.4
diff -C 2 -d -r1.3 -r1.4
*** CTestUpdateCVS.cmake.in	26 Feb 2009 14:22:14 -0000	1.3
--- CTestUpdateCVS.cmake.in	8 Apr 2009 13:21:57 -0000	1.4
***************
*** 103,106 ****
--- 103,113 ----
    )
  
+ # 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)



More information about the Cmake-commits mailing list