diff options
author | Amine Chadly <amine.chadly@gmail.com> | 2012-09-29 17:33:39 (GMT) |
---|---|---|
committer | Rolf Eike Beer <eike@sf-mail.de> | 2012-11-02 16:10:06 (GMT) |
commit | c2a6cb64af7fdb0e31d5c0781cbd0dabb4197b5a (patch) | |
tree | 4fb63407a771e3db9ea4867d72459eb3fec5cceb /Tests/CMakeTests/FileTest.cmake.in | |
parent | 07251a8ea5322f957adfcbb2fffb6c5ca121418c (diff) | |
download | CMake-c2a6cb64af7fdb0e31d5c0781cbd0dabb4197b5a.zip CMake-c2a6cb64af7fdb0e31d5c0781cbd0dabb4197b5a.tar.gz CMake-c2a6cb64af7fdb0e31d5c0781cbd0dabb4197b5a.tar.bz2 |
file: remove dead code
The file command requires at least two arguments, so guarding the GLOB and
MAKE_DIRECTORY command is not necessary. Changed it for an assert to keep the
protection.
Diffstat (limited to 'Tests/CMakeTests/FileTest.cmake.in')
-rw-r--r-- | Tests/CMakeTests/FileTest.cmake.in | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/CMakeTests/FileTest.cmake.in b/Tests/CMakeTests/FileTest.cmake.in index 3c3d85d..700f40b 100644 --- a/Tests/CMakeTests/FileTest.cmake.in +++ b/Tests/CMakeTests/FileTest.cmake.in @@ -12,6 +12,10 @@ set(Copy-NoDest-RESULT 1) set(Copy-NoDest-STDERR "given no DESTINATION") set(Copy-NoFile-RESULT 1) set(Copy-NoFile-STDERR "COPY cannot find.*/does_not_exist\\.txt") +set(Glob-NoArg-RESULT 1) +set(Glob-NoArg-STDERR "file must be called with at least two arguments") +set(Make_Directory-NoArg-RESULT 1) +set(Make-Directory-NoArg-STDERR "file must be called with at least two arguments") set(MD5-NoFile-RESULT 1) set(MD5-NoFile-STDERR "file MD5 failed to read file") set(MD5-BadArg1-RESULT 1) @@ -42,6 +46,8 @@ check_cmake_test(File Copy-LateArg Copy-NoDest Copy-NoFile + Glob-NoArg + Make_Directory-NoArg MD5-NoFile MD5-BadArg1 MD5-BadArg2 |