summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/list/TRANSFORM-Selector-FOR-NegativeStepArgument-stderr.txt
diff options
context:
space:
mode:
authorNick Muggio <nick@mugg.io>2021-12-09 01:54:04 (GMT)
committerNick Muggio <nick@mugg.io>2021-12-09 01:54:04 (GMT)
commit7dd3e99270431cace5086c62f4ee73441b9edc5e (patch)
tree2d1dda5d74af6f6e2a25377ae69c92cea86d5bd9 /Tests/RunCMake/list/TRANSFORM-Selector-FOR-NegativeStepArgument-stderr.txt
parenta54f18ff36f0dc47d565c111785515bc5e287c24 (diff)
downloadCMake-7dd3e99270431cace5086c62f4ee73441b9edc5e.zip
CMake-7dd3e99270431cace5086c62f4ee73441b9edc5e.tar.gz
CMake-7dd3e99270431cace5086c62f4ee73441b9edc5e.tar.bz2
cmListCommand: Handle invalid FOR selector ranges
Fixes crashes involving invalid ranges specified in list(TRANSFORM ... FOR ...) calls. * Report error when step is not positive * Report error when start is after stop Fixes: #22985
Diffstat (limited to 'Tests/RunCMake/list/TRANSFORM-Selector-FOR-NegativeStepArgument-stderr.txt')
-rw-r--r--Tests/RunCMake/list/TRANSFORM-Selector-FOR-NegativeStepArgument-stderr.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/RunCMake/list/TRANSFORM-Selector-FOR-NegativeStepArgument-stderr.txt b/Tests/RunCMake/list/TRANSFORM-Selector-FOR-NegativeStepArgument-stderr.txt
new file mode 100644
index 0000000..b9845a7
--- /dev/null
+++ b/Tests/RunCMake/list/TRANSFORM-Selector-FOR-NegativeStepArgument-stderr.txt
@@ -0,0 +1,5 @@
+^CMake Error at TRANSFORM-Selector-FOR-NegativeStepArgument.cmake:2 \(list\):
+ list sub-command TRANSFORM, selector FOR expects positive numeric value for
+ <step>.
+Call Stack \(most recent call first\):
+ CMakeLists.txt:3 \(include\)$