diff options
author | Brad King <brad.king@kitware.com> | 2012-08-06 13:29:20 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-08-08 17:26:26 (GMT) |
commit | f3155cd62ab669afc9d21bc877d5eb452ed94a7d (patch) | |
tree | 05ac7c842e5df94dbd08894757893a14844d5fce /Tests/RunCMake/Syntax/StringNoSpace.cmake | |
parent | 87e0e6e497b76f4ab7292cca34bd7c006832723b (diff) | |
download | CMake-f3155cd62ab669afc9d21bc877d5eb452ed94a7d.zip CMake-f3155cd62ab669afc9d21bc877d5eb452ed94a7d.tar.gz CMake-f3155cd62ab669afc9d21bc877d5eb452ed94a7d.tar.bz2 |
Add RunCMake.Syntax test to cover argument parsing
Test basic unquoted and quoted argument parsing cases including failure
on an unterminated string and an unterminated command invocation. Also
cover arguments not separated by any spaces, which is accidentally
allowed by the current parser.
Diffstat (limited to 'Tests/RunCMake/Syntax/StringNoSpace.cmake')
-rw-r--r-- | Tests/RunCMake/Syntax/StringNoSpace.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/RunCMake/Syntax/StringNoSpace.cmake b/Tests/RunCMake/Syntax/StringNoSpace.cmake new file mode 100644 index 0000000..76f22db --- /dev/null +++ b/Tests/RunCMake/Syntax/StringNoSpace.cmake @@ -0,0 +1,4 @@ +# Quoted arguments may be immediately followed by another argument. +foreach(x "1 \${var} \\n 4""x"y) + message("[${x}]") +endforeach() |