summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeTests/ListTest.cmake.in
diff options
context:
space:
mode:
authorRolf Eike Beer <eike@sf-mail.de>2012-08-15 21:05:05 (GMT)
committerRolf Eike Beer <eike@sf-mail.de>2012-08-15 21:05:05 (GMT)
commit08c71acc8729aa51b389c0583bca351077e5e44e (patch)
tree4857810b459a3fe82ffb8e3b16ab992f432b2579 /Tests/CMakeTests/ListTest.cmake.in
parent52d9c38e72a458bd3575aefab02694d5916bfd91 (diff)
downloadCMake-08c71acc8729aa51b389c0583bca351077e5e44e.zip
CMake-08c71acc8729aa51b389c0583bca351077e5e44e.tar.gz
CMake-08c71acc8729aa51b389c0583bca351077e5e44e.tar.bz2
CMake.List test: explicitely test with lists containing only an empty string
Diffstat (limited to 'Tests/CMakeTests/ListTest.cmake.in')
-rw-r--r--Tests/CMakeTests/ListTest.cmake.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/Tests/CMakeTests/ListTest.cmake.in b/Tests/CMakeTests/ListTest.cmake.in
index 07fc7c6..a167503 100644
--- a/Tests/CMakeTests/ListTest.cmake.in
+++ b/Tests/CMakeTests/ListTest.cmake.in
@@ -86,3 +86,14 @@ TEST("REVERSE result" "ken;brad;bill;andy")
set(result bill andy bill brad ken ken ken)
list(REMOVE_DUPLICATES result)
TEST("REMOVE_DUPLICATES result" "bill;andy;brad;ken")
+
+# these commands should just do nothing if the list is already empty
+set(result "")
+list(REMOVE_DUPLICATES result)
+TEST("REMOVE_DUPLICATES empty result" "")
+
+list(REVERSE result)
+TEST("REVERSE empty result" "")
+
+list(SORT result)
+TEST("SORT empty result" "")