summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/list
diff options
context:
space:
mode:
authorDaniel Chabrowski <dantezstudio@gmail.com>2018-07-01 16:30:21 (GMT)
committerBrad King <brad.king@kitware.com>2018-07-05 17:53:49 (GMT)
commita08154d493a08f1fc1473038f897eb5468a8f79b (patch)
treedc4c47de31730f708d0f95874ca1be97aede81b9 /Tests/RunCMake/list
parentdc70284c811a3183295371903d965658a9d2f8e0 (diff)
downloadCMake-a08154d493a08f1fc1473038f897eb5468a8f79b.zip
CMake-a08154d493a08f1fc1473038f897eb5468a8f79b.tar.gz
CMake-a08154d493a08f1fc1473038f897eb5468a8f79b.tar.bz2
list: Allow inserting at the end of a list
Fixes: #18069
Diffstat (limited to 'Tests/RunCMake/list')
-rw-r--r--Tests/RunCMake/list/INSERT-InvalidIndex-stderr.txt2
-rw-r--r--Tests/RunCMake/list/INSERT-InvalidIndex.cmake2
2 files changed, 2 insertions, 2 deletions
diff --git a/Tests/RunCMake/list/INSERT-InvalidIndex-stderr.txt b/Tests/RunCMake/list/INSERT-InvalidIndex-stderr.txt
index 6e15c0b..9b9c5e0 100644
--- a/Tests/RunCMake/list/INSERT-InvalidIndex-stderr.txt
+++ b/Tests/RunCMake/list/INSERT-InvalidIndex-stderr.txt
@@ -1,4 +1,4 @@
^CMake Error at INSERT-InvalidIndex.cmake:2 \(list\):
- list index: 3 out of range \(-3, 2\)
+ list index: 4 out of range \(-3, 3\)
Call Stack \(most recent call first\):
CMakeLists.txt:3 \(include\)$
diff --git a/Tests/RunCMake/list/INSERT-InvalidIndex.cmake b/Tests/RunCMake/list/INSERT-InvalidIndex.cmake
index 4103d97..12ac114 100644
--- a/Tests/RunCMake/list/INSERT-InvalidIndex.cmake
+++ b/Tests/RunCMake/list/INSERT-InvalidIndex.cmake
@@ -1,2 +1,2 @@
set(mylist alpha bravo charlie)
-list(INSERT mylist 3 delta)
+list(INSERT mylist 4 delta)