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

Function TestDir

Tests/Complex/Executable/complex.cxx:86–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84// ======================================================================
85
86void TestDir(char const* filename)
87{
88 struct stat st;
89 if (stat(filename, &st) < 0 || !S_ISDIR(st.st_mode)) {
90 cmFailed("Could not find dir: ", filename);
91 } else {
92 cmPassed("Find dir: ", filename);
93 }
94}
95
96// Here is a stupid function that tries to use std::string methods
97// so that the dec cxx compiler will instantiate the stuff that

Callers 1

mainFunction · 0.70

Calls 3

statClass · 0.70
cmFailedFunction · 0.70
cmPassedFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…