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

Function CheckCollapsePath

Source/kwsys/testSystemTools.cxx:784–795  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

782}
783
784static bool CheckCollapsePath(std::string const& path,
785 std::string const& expected,
786 char const* base = nullptr)
787{
788 std::string result = kwsys::SystemTools::CollapseFullPath(path, base);
789 if (!kwsys::SystemTools::ComparePath(expected, result)) {
790 std::cerr << "CollapseFullPath(" << path << ") yielded " << result
791 << " instead of " << expected << std::endl;
792 return false;
793 }
794 return true;
795}
796
797static bool CheckCollapsePath()
798{

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…