diff options
author | Brad King <brad.king@kitware.com> | 2022-07-18 21:48:21 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-07-20 20:03:12 (GMT) |
commit | 1cf2c94c69cffeb5dde30ca13e5f341f184b3b4c (patch) | |
tree | fac9f175cbb0baa96cbd8162375574a49d6265eb /Tests/RunCMake/file-CHMOD/invalid-path.cmake | |
parent | 11a0f72ac0aa0553d61f7a72e839ec7e88460268 (diff) | |
download | CMake-1cf2c94c69cffeb5dde30ca13e5f341f184b3b4c.zip CMake-1cf2c94c69cffeb5dde30ca13e5f341f184b3b4c.tar.gz CMake-1cf2c94c69cffeb5dde30ca13e5f341f184b3b4c.tar.bz2 |
Tests: Simplify RunCMake.file-CHMOD cases
Run each case as a `cmake -P` script instead of a full project.
The caller handles build directory removal and creation.
Diffstat (limited to 'Tests/RunCMake/file-CHMOD/invalid-path.cmake')
-rw-r--r-- | Tests/RunCMake/file-CHMOD/invalid-path.cmake | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Tests/RunCMake/file-CHMOD/invalid-path.cmake b/Tests/RunCMake/file-CHMOD/invalid-path.cmake index 36915c1..e8b0313 100644 --- a/Tests/RunCMake/file-CHMOD/invalid-path.cmake +++ b/Tests/RunCMake/file-CHMOD/invalid-path.cmake @@ -1,4 +1 @@ -file(REMOVE_RECURSE ${CMAKE_CURRENT_BINARY_DIR}/chmod-tests) -file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/chmod-tests) - -file(CHMOD ${CMAKE_CURRENT_BINARY_DIR}/chmod-tests/I_dont_exist PERMISSIONS OWNER_READ) +file(CHMOD ${CMAKE_CURRENT_BINARY_DIR}/I_dont_exist PERMISSIONS OWNER_READ) |