summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/Syntax/String1.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2012-08-06 13:29:20 (GMT)
committerBrad King <brad.king@kitware.com>2013-08-08 17:26:26 (GMT)
commitf3155cd62ab669afc9d21bc877d5eb452ed94a7d (patch)
tree05ac7c842e5df94dbd08894757893a14844d5fce /Tests/RunCMake/Syntax/String1.cmake
parent87e0e6e497b76f4ab7292cca34bd7c006832723b (diff)
downloadCMake-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/String1.cmake')
-rw-r--r--Tests/RunCMake/Syntax/String1.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/Tests/RunCMake/Syntax/String1.cmake b/Tests/RunCMake/Syntax/String1.cmake
new file mode 100644
index 0000000..a94c9ff
--- /dev/null
+++ b/Tests/RunCMake/Syntax/String1.cmake
@@ -0,0 +1,3 @@
+message("
+ 1 \${var} 4
+ ")