mirror of
https://github.com/reactos/CMake.git
synced 2024-11-28 14:01:21 +00:00
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.
This commit is contained in:
parent
144068e270
commit
8640e52979
3
Tests/RunCMake/Syntax/Escape1-stderr.txt
Normal file
3
Tests/RunCMake/Syntax/Escape1-stderr.txt
Normal file
@ -0,0 +1,3 @@
|
||||
^\\##\[\[#\]\]#\[\[\]\]x#\\"
|
||||
\$\@\^\\; \(\)#\\"
|
||||
\$\@\^; \(\)$
|
3
Tests/RunCMake/Syntax/Escape1.cmake
Normal file
3
Tests/RunCMake/Syntax/Escape1.cmake
Normal file
@ -0,0 +1,3 @@
|
||||
message([[\#]] \#[[ \#]] "#[[]]" x#comment
|
||||
"\#\\\"\n\$\@\^\;\ \t\(\)"#comment
|
||||
\#\\\"\n\$\@\^\;\ \t\(\))
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user