MCPcopy Create free account
hub / github.com/Kitware/VTK / checkTestFile

Function checkTestFile

ThirdParty/libxml2/vtklibxml2/runxmlconf.c:46–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44 ************************************************************************/
45
46static int checkTestFile(const char *filename) {
47 struct stat buf;
48
49 if (stat(filename, &buf) == -1)
50 return(0);
51
52#if defined(_WIN32)
53 if (!(buf.st_mode & _S_IFREG))
54 return(0);
55#else
56 if (!S_ISREG(buf.st_mode))
57 return(0);
58#endif
59
60 return(1);
61}
62
63static xmlChar *composeDir(const xmlChar *dir, const xmlChar *path) {
64 char buf[500];

Callers 2

xmlconfTestItemFunction · 0.70
xmlconfTestFunction · 0.70

Calls 1

statClass · 0.70

Tested by

no test coverage detected