CMake/Tests/RunCMake/list
Brad King 05604eb9cb list: Handle errors on empty lists more gracefully (#13138)
Since commit ed1ea24c (Fix INSERT to allow inserting to empty list,
2006-05-15) the list command allows insertion into an empty list at
index 0.  Fix rejection of insertion at non-zero (negative) indices to
present an error message instead of crashing.

While at it, fix the error message of the GET and REMOVE_AT operations
when the list is empty to not present a bogus allowed range.

Add a "RunCMake.list" test to cover failure cases on empty lists.
2012-04-17 11:07:07 -04:00
..
CMakeLists.txt list: Handle errors on empty lists more gracefully (#13138) 2012-04-17 11:07:07 -04:00
EmptyGet0-result.txt list: Handle errors on empty lists more gracefully (#13138) 2012-04-17 11:07:07 -04:00
EmptyGet0-stderr.txt list: Handle errors on empty lists more gracefully (#13138) 2012-04-17 11:07:07 -04:00
EmptyGet0.cmake list: Handle errors on empty lists more gracefully (#13138) 2012-04-17 11:07:07 -04:00
EmptyInsert-1-result.txt list: Handle errors on empty lists more gracefully (#13138) 2012-04-17 11:07:07 -04:00
EmptyInsert-1-stderr.txt list: Handle errors on empty lists more gracefully (#13138) 2012-04-17 11:07:07 -04:00
EmptyInsert-1.cmake list: Handle errors on empty lists more gracefully (#13138) 2012-04-17 11:07:07 -04:00
EmptyRemoveAt0-result.txt list: Handle errors on empty lists more gracefully (#13138) 2012-04-17 11:07:07 -04:00
EmptyRemoveAt0-stderr.txt list: Handle errors on empty lists more gracefully (#13138) 2012-04-17 11:07:07 -04:00
EmptyRemoveAt0.cmake list: Handle errors on empty lists more gracefully (#13138) 2012-04-17 11:07:07 -04:00
RunCMakeTest.cmake list: Handle errors on empty lists more gracefully (#13138) 2012-04-17 11:07:07 -04:00