diff options
author | Brad King <brad.king@kitware.com> | 2021-10-12 15:38:24 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-10-12 15:38:24 (GMT) |
commit | 8d14ca3142d869eed7be953e156718f51a855e02 (patch) | |
tree | 037d24b3eef74bca6b067e3f6416e3f4209ad50e /Source/kwsys/testSystemTools.cxx | |
parent | 6f1fe83f865edb276aa78dd9f5dda1dbebcf21e3 (diff) | |
parent | 58f046ba26d67c6e1ceda2a20977e316f1a942ad (diff) | |
download | CMake-8d14ca3142d869eed7be953e156718f51a855e02.zip CMake-8d14ca3142d869eed7be953e156718f51a855e02.tar.gz CMake-8d14ca3142d869eed7be953e156718f51a855e02.tar.bz2 |
Merge branch 'upstream-KWSys' into update-kwsys
# By KWSys Upstream
* upstream-KWSys:
KWSys 2021-10-08 (b8c734ba)
Diffstat (limited to 'Source/kwsys/testSystemTools.cxx')
-rw-r--r-- | Source/kwsys/testSystemTools.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/kwsys/testSystemTools.cxx b/Source/kwsys/testSystemTools.cxx index 6ccc7a7..f96bd71 100644 --- a/Source/kwsys/testSystemTools.cxx +++ b/Source/kwsys/testSystemTools.cxx @@ -626,6 +626,16 @@ static bool CheckStringOperations() res = false; } + std::vector<std::string> linesToJoin = { "Mary", "Had", "A", "Little", + "Lamb." }; + std::string joinResult = kwsys::SystemTools::Join(linesToJoin, " "); + if (joinResult != "Mary Had A Little Lamb.") { + std::cerr << "Problem with Join " + "\"Mary Had A Little Lamb.\"" + << std::endl; + res = false; + } + if (kwsys::SystemTools::ConvertToWindowsOutputPath( "L://Local Mojo/Hex Power Pack/Iffy Voodoo") != "\"L:\\Local Mojo\\Hex Power Pack\\Iffy Voodoo\"") { |