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

Function checkTestFile

ThirdParty/libxml2/vtklibxml2/runtest.c:341–356  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

339}
340
341static int checkTestFile(const char *filename) {
342 struct stat buf;
343
344 if (stat(filename, &buf) == -1)
345 return(0);
346
347#if defined(_WIN32)
348 if (!(buf.st_mode & _S_IFREG))
349 return(0);
350#else
351 if (!S_ISREG(buf.st_mode))
352 return(0);
353#endif
354
355 return(1);
356}
357
358static int compareFiles(const char *r1 /* temp */, const char *r2 /* result */) {
359 int res1, res2, total;

Callers 4

testExternalEntityLoaderFunction · 0.70
patternTestFunction · 0.70
c14nCommonTestFunction · 0.70
launchTestsFunction · 0.70

Calls 1

statClass · 0.70

Tested by

no test coverage detected