summaryrefslogtreecommitdiffstats
path: root/Help/command
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-07-27 13:26:21 (GMT)
committerCraig Scott <craig.scott@crascit.com>2020-07-27 22:04:11 (GMT)
commit5fc5f4d26ed0736f4023d1aa1de2aa24d4df15af (patch)
treed315e0d18b95daeea9374e40af817b8bc277bf0c /Help/command
parent16327086f020e5a2f4267e327e27b50b73e131ca (diff)
downloadCMake-5fc5f4d26ed0736f4023d1aa1de2aa24d4df15af.zip
CMake-5fc5f4d26ed0736f4023d1aa1de2aa24d4df15af.tar.gz
CMake-5fc5f4d26ed0736f4023d1aa1de2aa24d4df15af.tar.bz2
add_test: Revert "Allow special characters in test name"
Revert commit f84af8e270 (add_test: Allow special characters in test name, 2020-05-16, v3.18.0-rc1~142^2). Unfortunately the fix breaks projects that were working around the limitation with manual escaping. The fix can be re-introduced with a policy in a future version. Also add a 3.18.1 release note explaining the change. Fixes: #21017, #20965 Issue: #19391
Diffstat (limited to 'Help/command')
-rw-r--r--Help/command/add_test.rst5
1 files changed, 2 insertions, 3 deletions
diff --git a/Help/command/add_test.rst b/Help/command/add_test.rst
index c0677d2..a77ba37 100644
--- a/Help/command/add_test.rst
+++ b/Help/command/add_test.rst
@@ -10,9 +10,8 @@ Add a test to the project to be run by :manual:`ctest(1)`.
[WORKING_DIRECTORY <dir>]
[COMMAND_EXPAND_LISTS])
-Adds a test called ``<name>``. The test name may contain arbitrary
-characters except for double-quotes. However, if it contains spaces
-or semicolons it must be enclosed in double-quotes. The options are:
+Adds a test called ``<name>``. The test name may not contain spaces,
+quotes, or other characters special in CMake syntax. The options are:
``COMMAND``
Specify the test command-line. If ``<command>`` specifies an