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

Function CheckRelativePaths

Source/kwsys/testSystemTools.cxx:772–782  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

770}
771
772static bool CheckRelativePaths()
773{
774 bool res = true;
775 res &= CheckRelativePath("/usr/share", "/bin/bash", "../../bin/bash");
776 res &= CheckRelativePath("/usr/./share/", "/bin/bash", "../../bin/bash");
777 res &= CheckRelativePath("/usr//share/", "/bin/bash", "../../bin/bash");
778 res &=
779 CheckRelativePath("/usr/share/../bin/", "/bin/bash", "../../bin/bash");
780 res &= CheckRelativePath("/usr/share", "/usr/share//bin", "bin");
781 return res;
782}
783
784static bool CheckCollapsePath(std::string const& path,
785 std::string const& expected,

Callers 1

testSystemToolsFunction · 0.85

Calls 1

CheckRelativePathFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…