summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeTests
diff options
context:
space:
mode:
authorAmine Chadly <amine.chadly@gmail.com>2012-09-29 18:27:21 (GMT)
committerRolf Eike Beer <eike@sf-mail.de>2012-11-02 16:10:06 (GMT)
commit48ed48f7ad4c2da8037e997129b5ae8923ab7268 (patch)
treef744115fb445228bd9ae9aa1e69fae958ec6a2cb /Tests/CMakeTests
parentc2a6cb64af7fdb0e31d5c0781cbd0dabb4197b5a (diff)
downloadCMake-48ed48f7ad4c2da8037e997129b5ae8923ab7268.zip
CMake-48ed48f7ad4c2da8037e997129b5ae8923ab7268.tar.gz
CMake-48ed48f7ad4c2da8037e997129b5ae8923ab7268.tar.bz2
Add test to secure the file(GLOB empty) behavior.
Diffstat (limited to 'Tests/CMakeTests')
-rw-r--r--Tests/CMakeTests/FileTest.cmake.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/CMakeTests/FileTest.cmake.in b/Tests/CMakeTests/FileTest.cmake.in
index 700f40b..960d3c1 100644
--- a/Tests/CMakeTests/FileTest.cmake.in
+++ b/Tests/CMakeTests/FileTest.cmake.in
@@ -60,6 +60,11 @@ check_cmake_test(File
SHA512-Works
)
+file(GLOB hum)
+if (NOT hum STREQUAL "")
+ message(FATAL_ERROR "file(GLOB hum) did not return an empty string.")
+endif()
+
# Also execute each test listed in FileTestScript.cmake:
#
set(scriptname "@CMAKE_CURRENT_SOURCE_DIR@/FileTestScript.cmake")