summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/add_test/CMP0110-WARN-FormerInvalidSpecialChars-stderr.txt
diff options
context:
space:
mode:
authorDeniz Bahadir <dbahadir@benocs.com>2020-05-15 23:52:34 (GMT)
committerBrad King <brad.king@kitware.com>2020-08-12 14:44:07 (GMT)
commita20987732bbd8d7e86501e42b2b5a72d60d02805 (patch)
tree89f416b8548c649d89e7d1108cc0905058a43ff0 /Tests/RunCMake/add_test/CMP0110-WARN-FormerInvalidSpecialChars-stderr.txt
parentd6ee9b4a43210553b8f4d3a11413f744e2affb26 (diff)
downloadCMake-a20987732bbd8d7e86501e42b2b5a72d60d02805.zip
CMake-a20987732bbd8d7e86501e42b2b5a72d60d02805.tar.gz
CMake-a20987732bbd8d7e86501e42b2b5a72d60d02805.tar.bz2
add_test: Allow special characters in test name (w/ policy CMP0110)
Restore the change from commit f84af8e270 (add_test: Allow special characters in test name, 2020-05-16, v3.18.0-rc1~142^2) that had to be reverted by commit f84af8e270 (add_test: Allow special characters in test name, 2020-05-16, v3.18.0-rc1~142^2) for compatibility. Add policy CMP0110 to make the change in a compatible way. Also, support even more characters than before by generating the test scripts using bracket arguments around the test names. Fixes: #19391 Signed-off-by: Deniz Bahadir <dbahadir@benocs.com>
Diffstat (limited to 'Tests/RunCMake/add_test/CMP0110-WARN-FormerInvalidSpecialChars-stderr.txt')
-rw-r--r--Tests/RunCMake/add_test/CMP0110-WARN-FormerInvalidSpecialChars-stderr.txt13
1 files changed, 13 insertions, 0 deletions
diff --git a/Tests/RunCMake/add_test/CMP0110-WARN-FormerInvalidSpecialChars-stderr.txt b/Tests/RunCMake/add_test/CMP0110-WARN-FormerInvalidSpecialChars-stderr.txt
new file mode 100644
index 0000000..4f20ab9
--- /dev/null
+++ b/Tests/RunCMake/add_test/CMP0110-WARN-FormerInvalidSpecialChars-stderr.txt
@@ -0,0 +1,13 @@
+CMake Warning \(dev\) in CMakeLists\.txt:
+ Policy CMP0110 is not set: add_test\(\) supports arbitrary characters in test
+ names\. Run "cmake --help-policy CMP0110" for policy details\. Use the
+ cmake_policy command to set the policy and suppress this warning\.
+
+ The following name given to add_test\(\) is invalid if CMP0110 is not set or
+ set to OLD:
+
+ `\$\[\] #;[ ]
+
+ "\\ยด
+
+This warning is for project developers\. Use -Wno-dev to suppress it.