summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/list/RunCMakeTest.cmake
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2018-10-11 21:26:44 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2018-10-16 18:31:39 (GMT)
commit121a036f73665a18ccadeaf50b00cc623d8ed9df (patch)
treef361e2403c53546425781713b7bdeb57e5ba9389 /Tests/RunCMake/list/RunCMakeTest.cmake
parentacfe53c58817c662b935fbe0f0443de298371731 (diff)
downloadCMake-121a036f73665a18ccadeaf50b00cc623d8ed9df.zip
CMake-121a036f73665a18ccadeaf50b00cc623d8ed9df.tar.gz
CMake-121a036f73665a18ccadeaf50b00cc623d8ed9df.tar.bz2
cmListCommand: handle empty lists for list(REMOVE_AT)
Treat an empty list as a list with no valid bounds and return an error message indicating that any given indices are out-of-bounds.
Diffstat (limited to 'Tests/RunCMake/list/RunCMakeTest.cmake')
-rw-r--r--Tests/RunCMake/list/RunCMakeTest.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/Tests/RunCMake/list/RunCMakeTest.cmake b/Tests/RunCMake/list/RunCMakeTest.cmake
index a8a0b57..bf3d22d 100644
--- a/Tests/RunCMake/list/RunCMakeTest.cmake
+++ b/Tests/RunCMake/list/RunCMakeTest.cmake
@@ -22,6 +22,8 @@ run_cmake(REMOVE_DUPLICATES-TooManyArguments)
run_cmake(REVERSE-TooManyArguments)
run_cmake(SUBLIST-TooManyArguments)
+run_cmake(REMOVE_AT-EmptyList)
+
run_cmake(FILTER-NotList)
run_cmake(REMOVE_AT-NotList)
run_cmake(REMOVE_DUPLICATES-NotList)