Fixed 'make distclean'

This commit is contained in:
Markus Kauppila 2011-08-06 19:17:05 +03:00
parent 116f983b85
commit a3ce2b9778
5 changed files with 23 additions and 10 deletions

View file

@ -233,7 +233,7 @@ ScanForTestSuites(char *directoryName, char *extension)
}
while(entry = readdir(directory)) {
// discards . and .. and hidden files starting with .
// discards . and .. and hidden files starting with dot and directories etc.
if(strlen(entry->d_name) > 2 && entry->d_name[0] != '.' && entry->d_type == DT_REG) {
const char *delimiters = ".";
char *name = strtok(entry->d_name, delimiters);