[Cmake-commits] [cmake-commits] hoffman committed CMakeLists.txt 1.5 1.6

cmake-commits at cmake.org cmake-commits at cmake.org
Mon Nov 9 12:48:36 EST 2009


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

Modified Files:
	CMakeLists.txt 
Log Message:
Allow test to work on machines with umasks that do not allow files to be overwritten.


Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/TarTest/CMakeLists.txt,v
retrieving revision 1.5
retrieving revision 1.6
diff -C 2 -d -r1.5 -r1.6
*** CMakeLists.txt	25 Mar 2008 15:27:12 -0000	1.5
--- CMakeLists.txt	9 Nov 2009 17:48:31 -0000	1.6
***************
*** 29,35 ****
--- 29,45 ----
  ENDIF(UNIX)
  
+ # cleanup first in case there are files left from previous runs
+ # if the umask is odd on the machine it might create files that
+ # are not automatically over written.  These tests are run
+ # each time the configure step is run.
+ FILE(REMOVE "${CMAKE_CURRENT_BINARY_DIR}/test_tar.tar")
+ FILE(REMOVE "${CMAKE_CURRENT_BINARY_DIR}/test_tgz.tgz")
+ FILE(REMOVE_RECURSE "${CMAKE_CURRENT_BINARY_DIR}/test_output_tar")
+ FILE(REMOVE_RECURSE "${CMAKE_CURRENT_BINARY_DIR}/test_output_tgz")
+ 
  MAKE_DIRECTORY("${CMAKE_CURRENT_BINARY_DIR}/test_output_tar")
  MAKE_DIRECTORY("${CMAKE_CURRENT_BINARY_DIR}/test_output_tgz")
  
+ 
  # Run tests
  EXEC_TAR_COMMAND("${CMAKE_CURRENT_BINARY_DIR}" "cvf \"${CMAKE_CURRENT_BINARY_DIR}/test_tar.tar\" tar_dir")



More information about the Cmake-commits mailing list