summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-05-22 17:05:29 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2013-05-22 17:05:29 (GMT)
commit2da5b51b0c92b99a9b335f2d05dcdc115b8920ac (patch)
tree8afec337a2bbc25111f73a589e76091cf7b616cc /Tests
parentfe4c1fb32e877ea36c6882cefe4e773157573903 (diff)
parent0ab50aea4c4d7099b339fb38b4459d0debbdbd85 (diff)
downloadCMake-2da5b51b0c92b99a9b335f2d05dcdc115b8920ac.zip
CMake-2da5b51b0c92b99a9b335f2d05dcdc115b8920ac.tar.gz
CMake-2da5b51b0c92b99a9b335f2d05dcdc115b8920ac.tar.bz2
Merge topic 'string-MAKE_C_IDENTIFIER-subcommand'
0ab50ae string: Add MAKE_C_IDENTIFIER subcommand
Diffstat (limited to 'Tests')
-rw-r--r--Tests/StringFileTest/CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/StringFileTest/CMakeLists.txt b/Tests/StringFileTest/CMakeLists.txt
index 6d798b0..00383ab 100644
--- a/Tests/StringFileTest/CMakeLists.txt
+++ b/Tests/StringFileTest/CMakeLists.txt
@@ -280,3 +280,9 @@ endif()
if(NOT ST_NINE STREQUAL "9")
message(SEND_ERROR "SUBSTRING does not return the tail when selected with -1")
endif()
+
+string(MAKE_C_IDENTIFIER "1one-two$" MCI_1)
+
+if(NOT MCI_1 STREQUAL _1one_two_)
+ message(SEND_ERROR "MAKE_C_IDENTIFIER did not create expected result.")
+endif()