summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeTests/List-Get-Invalid-Index.cmake
diff options
context:
space:
mode:
authorPetr Kmoch <petr.kmoch@gmail.com>2012-09-29 12:41:07 (GMT)
committerRolf Eike Beer <eike@sf-mail.de>2012-11-02 16:08:49 (GMT)
commit1b078c304db63eb6cd46fe0f22988f8241a389b2 (patch)
treea6624366c4238f48a558bbc41e2baf8dc11e92f5 /Tests/CMakeTests/List-Get-Invalid-Index.cmake
parentf560977540215e533c5360e1ab84dd0846d18310 (diff)
downloadCMake-1b078c304db63eb6cd46fe0f22988f8241a389b2.zip
CMake-1b078c304db63eb6cd46fe0f22988f8241a389b2.tar.gz
CMake-1b078c304db63eb6cd46fe0f22988f8241a389b2.tar.bz2
Add tests for list() invalid arguments
Add tests for error reporting when list() arguments are invalid.
Diffstat (limited to 'Tests/CMakeTests/List-Get-Invalid-Index.cmake')
-rw-r--r--Tests/CMakeTests/List-Get-Invalid-Index.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/Tests/CMakeTests/List-Get-Invalid-Index.cmake b/Tests/CMakeTests/List-Get-Invalid-Index.cmake
new file mode 100644
index 0000000..178295a
--- /dev/null
+++ b/Tests/CMakeTests/List-Get-Invalid-Index.cmake
@@ -0,0 +1,2 @@
+set(mylist alpha bravo charlie)
+list(GET mylist 3 result)