summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/while
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/while')
-rw-r--r--Tests/RunCMake/while/unbalanced-parenthesis-result.txt1
-rw-r--r--Tests/RunCMake/while/unbalanced-parenthesis-stderr.txt5
-rw-r--r--Tests/RunCMake/while/unbalanced-parenthesis.cmake2
3 files changed, 7 insertions, 1 deletions
diff --git a/Tests/RunCMake/while/unbalanced-parenthesis-result.txt b/Tests/RunCMake/while/unbalanced-parenthesis-result.txt
new file mode 100644
index 0000000..d00491f
--- /dev/null
+++ b/Tests/RunCMake/while/unbalanced-parenthesis-result.txt
@@ -0,0 +1 @@
+1
diff --git a/Tests/RunCMake/while/unbalanced-parenthesis-stderr.txt b/Tests/RunCMake/while/unbalanced-parenthesis-stderr.txt
new file mode 100644
index 0000000..33ac54a
--- /dev/null
+++ b/Tests/RunCMake/while/unbalanced-parenthesis-stderr.txt
@@ -0,0 +1,5 @@
+CMake Error at unbalanced-parenthesis.cmake:[0-9]+ \(while\):
+ had incorrect arguments: NOT \$\{var_with_paren\} IN_LIST some_list
+ \(mismatched parenthesis in condition\).
+Call Stack \(most recent call first\):
+ CMakeLists\.txt:[0-9]+ \(include\)
diff --git a/Tests/RunCMake/while/unbalanced-parenthesis.cmake b/Tests/RunCMake/while/unbalanced-parenthesis.cmake
index 4b6a5cd..7a12701 100644
--- a/Tests/RunCMake/while/unbalanced-parenthesis.cmake
+++ b/Tests/RunCMake/while/unbalanced-parenthesis.cmake
@@ -5,4 +5,4 @@ while(NOT ${var_with_paren} IN_LIST some_list)
message(STATUS "Never prints")
endwhile()
-message(STATUS "It prints but in fact `while()` have to fail")
+message(STATUS "Never prints")