diff options
author | Brad King <brad.king@kitware.com> | 2013-10-29 14:21:50 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-10-29 14:21:50 (GMT) |
commit | 8640e5297911df98521b2b835aa1c024adbf845e (patch) | |
tree | a8e8239608f8881a46c2ead8965c1f58dcf24c4d /Tests/RunCMake/Syntax | |
parent | 144068e270a5e99fb6c3e5dbea0eb94d0bd8fd79 (diff) | |
download | CMake-8640e5297911df98521b2b835aa1c024adbf845e.zip CMake-8640e5297911df98521b2b835aa1c024adbf845e.tar.gz CMake-8640e5297911df98521b2b835aa1c024adbf845e.tar.bz2 |
Add to RunCMake.Syntax test \-escape cases
Add an Escape1 test case covering \-escape cases inside bracket, quoted,
and unquoted arguments. Also cover comments immediately after quoted
and unquoted arguments on lines containing \# escapes.
Diffstat (limited to 'Tests/RunCMake/Syntax')
-rw-r--r-- | Tests/RunCMake/Syntax/Escape1-stderr.txt | 3 | ||||
-rw-r--r-- | Tests/RunCMake/Syntax/Escape1.cmake | 3 | ||||
-rw-r--r-- | Tests/RunCMake/Syntax/RunCMakeTest.cmake | 1 |
3 files changed, 7 insertions, 0 deletions
diff --git a/Tests/RunCMake/Syntax/Escape1-stderr.txt b/Tests/RunCMake/Syntax/Escape1-stderr.txt new file mode 100644 index 0000000..6601ce7 --- /dev/null +++ b/Tests/RunCMake/Syntax/Escape1-stderr.txt @@ -0,0 +1,3 @@ +^\\##\[\[#\]\]#\[\[\]\]x#\\" +\$\@\^\\; \(\)#\\" +\$\@\^; \(\)$ diff --git a/Tests/RunCMake/Syntax/Escape1.cmake b/Tests/RunCMake/Syntax/Escape1.cmake new file mode 100644 index 0000000..3bf801e --- /dev/null +++ b/Tests/RunCMake/Syntax/Escape1.cmake @@ -0,0 +1,3 @@ +message([[\#]] \#[[ \#]] "#[[]]" x#comment + "\#\\\"\n\$\@\^\;\ \t\(\)"#comment + \#\\\"\n\$\@\^\;\ \t\(\)) diff --git a/Tests/RunCMake/Syntax/RunCMakeTest.cmake b/Tests/RunCMake/Syntax/RunCMakeTest.cmake index 2d49f76..4f42a07 100644 --- a/Tests/RunCMake/Syntax/RunCMakeTest.cmake +++ b/Tests/RunCMake/Syntax/RunCMakeTest.cmake @@ -39,6 +39,7 @@ run_cmake(BracketNoSpace2) run_cmake(BracketNoSpace3) run_cmake(BracketNoSpace4) run_cmake(BracketNoSpace5) +run_cmake(Escape1) run_cmake(ParenNoSpace0) run_cmake(ParenNoSpace1) run_cmake(ParenNoSpace2) |