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

Function CheckEnvironmentOperations

Source/kwsys/testSystemTools.cxx:744–757  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

742}
743
744static bool CheckEnvironmentOperations()
745{
746 bool res = true;
747 res &= CheckPutEnv("A=B", "A", "B");
748 res &= CheckPutEnv("B=C", "B", "C");
749 res &= CheckPutEnv("C=D", "C", "D");
750 res &= CheckPutEnv("D=E", "D", "E");
751 res &= CheckPutEnv("F=", "F", "");
752 res &= CheckUnPutEnv("A", "A");
753 res &= CheckUnPutEnv("B=", "B");
754 res &= CheckUnPutEnv("C=D", "C");
755 /* Leave "D=E" in environment so a memory checker can test for leaks. */
756 return res;
757}
758
759static bool CheckRelativePath(std::string const& local,
760 std::string const& remote,

Callers 1

testSystemToolsFunction · 0.85

Calls 2

CheckPutEnvFunction · 0.85
CheckUnPutEnvFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…