summaryrefslogtreecommitdiffstats
path: root/Tests/StringFileTest
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-03-21 18:34:32 (GMT)
committerBrad King <brad.king@kitware.com>2013-05-21 19:29:34 (GMT)
commit0ab50aea4c4d7099b339fb38b4459d0debbdbd85 (patch)
tree573c1c8fa48079f663c5c0a61d02c98040818627 /Tests/StringFileTest
parent272431a84ff13eb17cf04389428f57c7fe13e3a2 (diff)
downloadCMake-0ab50aea4c4d7099b339fb38b4459d0debbdbd85.zip
CMake-0ab50aea4c4d7099b339fb38b4459d0debbdbd85.tar.gz
CMake-0ab50aea4c4d7099b339fb38b4459d0debbdbd85.tar.bz2
string: Add MAKE_C_IDENTIFIER subcommand
Diffstat (limited to 'Tests/StringFileTest')
-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()