MCPcopy Create free account
hub / github.com/Kitware/CMake / CheckConvertToUnixSlashes

Function CheckConvertToUnixSlashes

Source/kwsys/testSystemTools.cxx:74–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72};
73
74static bool CheckConvertToUnixSlashes(std::string const& input,
75 std::string const& output)
76{
77 std::string result = input;
78 kwsys::SystemTools::ConvertToUnixSlashes(result);
79 if (result != output) {
80 std::cerr << "Problem with ConvertToUnixSlashes - input: " << input
81 << " output: " << result << " expected: " << output << std::endl;
82 return false;
83 }
84 return true;
85}
86
87static char const* checkEscapeChars[][4] = {
88 { "1 foo 2 bar 2", "12", "\\", "\\1 foo \\2 bar \\2" },

Callers 1

testSystemToolsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…