diff options
author | Brad King <brad.king@kitware.com> | 2018-06-29 12:55:42 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2018-06-29 12:55:47 (GMT) |
commit | faa9ef9968be574427f935c3bd614b1ceb69558b (patch) | |
tree | be52b81873ec1c70714cb9c91a94088736e8b368 /Tests/RunCMake | |
parent | a3371e70b786f51d8fead1d6aba2cc7cd3e30ce3 (diff) | |
parent | b29842a818ea978a85c0646cd3c2b3191b0498fc (diff) | |
download | CMake-faa9ef9968be574427f935c3bd614b1ceb69558b.zip CMake-faa9ef9968be574427f935c3bd614b1ceb69558b.tar.gz CMake-faa9ef9968be574427f935c3bd614b1ceb69558b.tar.bz2 |
Merge topic 'lexer-null'
b29842a818 ListFileLexer: Do not match null bytes in input
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !2174
Diffstat (limited to 'Tests/RunCMake')
-rw-r--r-- | Tests/RunCMake/Syntax/NullAfterBackslash-result.txt | 1 | ||||
-rw-r--r-- | Tests/RunCMake/Syntax/NullAfterBackslash-stderr.txt | 5 | ||||
-rw-r--r-- | Tests/RunCMake/Syntax/NullAfterBackslash.cmake | bin | 0 -> 113 bytes | |||
-rw-r--r-- | Tests/RunCMake/Syntax/RunCMakeTest.cmake | 1 |
4 files changed, 7 insertions, 0 deletions
diff --git a/Tests/RunCMake/Syntax/NullAfterBackslash-result.txt b/Tests/RunCMake/Syntax/NullAfterBackslash-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/Syntax/NullAfterBackslash-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/Syntax/NullAfterBackslash-stderr.txt b/Tests/RunCMake/Syntax/NullAfterBackslash-stderr.txt new file mode 100644 index 0000000..e7ba440 --- /dev/null +++ b/Tests/RunCMake/Syntax/NullAfterBackslash-stderr.txt @@ -0,0 +1,5 @@ +CMake Error at NullAfterBackslash.cmake:1: + Parse error. Function missing ending "\)". Instead found bad character + with text "\\". +Call Stack \(most recent call first\): + CMakeLists.txt:3 \(include\) diff --git a/Tests/RunCMake/Syntax/NullAfterBackslash.cmake b/Tests/RunCMake/Syntax/NullAfterBackslash.cmake Binary files differnew file mode 100644 index 0000000..ed96904 --- /dev/null +++ b/Tests/RunCMake/Syntax/NullAfterBackslash.cmake diff --git a/Tests/RunCMake/Syntax/RunCMakeTest.cmake b/Tests/RunCMake/Syntax/RunCMakeTest.cmake index 628df91..b8f5fd0 100644 --- a/Tests/RunCMake/Syntax/RunCMakeTest.cmake +++ b/Tests/RunCMake/Syntax/RunCMakeTest.cmake @@ -55,6 +55,7 @@ run_cmake(BracketNoSpace5) run_cmake(Escape1) run_cmake(Escape2) run_cmake(EscapeCharsAllowed) +run_cmake(NullAfterBackslash) run_cmake(NullTerminatedArgument) include("${RunCMake_SOURCE_DIR}/EscapeCharsDisallowed.cmake") run_cmake(ParenNoSpace0) |