CMake/Tests/RunCMake
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
..
ObjectLibrary Test OBJECT library language propagation 2012-03-16 10:12:30 -04:00
build_command Use generalized RunCMake test infrastrucure for build_command test 2012-03-12 09:33:21 -04:00
find_package find_package: Test rejection of required+optional components 2012-03-19 10:53:36 -04:00
list list: Handle errors on empty lists more gracefully (#13138) 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
RunCMake.cmake Add stronger infrastructure for CMake-only tests 2012-03-12 09:33:21 -04:00