mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-23 20:33:05 +00:00
Fix test suite
This commit is contained in:
parent
49cb2bcda2
commit
e062c847cb
1 changed files with 8 additions and 1 deletions
9
test.c
9
test.c
|
@ -428,11 +428,18 @@ bool task_propogate(const char *curdir) {
|
|||
DIR *dir;
|
||||
struct dirent *files;
|
||||
struct stat directory;
|
||||
char buffer[4096];
|
||||
|
||||
dir = opendir(curdir);
|
||||
|
||||
while ((files = readdir(dir))) {
|
||||
stat(files->d_name, &directory);
|
||||
memset (buffer, 0, sizeof(buffer));
|
||||
snprintf(buffer, 0, "%s/%s", curdir, files->d_name);
|
||||
|
||||
if (stat(buffer, &directory) == -1) {
|
||||
con_err("internal error: stat failed, aborting\n");
|
||||
abort();
|
||||
}
|
||||
|
||||
/* skip directories */
|
||||
if (S_ISDIR(directory.st_mode))
|
||||
|
|
Loading…
Reference in a new issue