summaryrefslogtreecommitdiff
path: root/Tests/StringFileTest
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-05-13 10:30:22 -0400
committerBrad King <brad.king@kitware.com>2009-05-13 10:30:22 -0400
commit33a1076b84c883f527f9817b51bdc2573841522e (patch)
treee673e45657923a56a1226f111f8d6b38a8a153e1 /Tests/StringFileTest
parent39c7fc97f01b3903922fb60091792a8a405b379a (diff)
downloadcmake-33a1076b84c883f527f9817b51bdc2573841522e.tar.gz
BUG: file(COPY) test should not make read-only dir
CMake directory removal code cannot remove content from read-only directories (a separate bug which will be fixed). Therefore we should not create them in the StringFileTest. This tweaks the file(COPY) call to test not giving OWNER_WRITE to files rather than directories.
Diffstat (limited to 'Tests/StringFileTest')
-rw-r--r--Tests/StringFileTest/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tests/StringFileTest/CMakeLists.txt b/Tests/StringFileTest/CMakeLists.txt
index 398243cabf..798b9cd930 100644
--- a/Tests/StringFileTest/CMakeLists.txt
+++ b/Tests/StringFileTest/CMakeLists.txt
@@ -191,8 +191,8 @@ FILE(RENAME "${CMAKE_CURRENT_BINARY_DIR}/OutputFile.h-tmp"
# Test file copy with relative paths
FILE(COPY .
DESTINATION src
- FILE_PERMISSIONS OWNER_READ OWNER_WRITE
- DIRECTORY_PERMISSIONS OWNER_READ OWNER_EXECUTE # test no OWNER_WRITE
+ FILE_PERMISSIONS OWNER_READ # test no OWNER_WRITE
+ DIRECTORY_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE
FILES_MATCHING PATTERN *.cxx # Only copy the main source file
REGEX /src$ EXCLUDE # Block recursion for in-source build
)