]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - test.c
Added more tests, fixed existing ones, and some more test system changes.
[xonotic/gmqcc.git] / test.c
diff --git a/test.c b/test.c
index 1ea5b6056ca39bb285676465a3b5528cb451f035..535d366914e331af56156b4c6e172ceb73a1ce26 100644 (file)
--- a/test.c
+++ b/test.c
@@ -507,15 +507,12 @@ bool task_propogate(const char *curdir) {
 void task_cleanup(const char *curdir) {
     DIR             *dir;
     struct dirent   *files;
-    struct stat      directory;
     char             buffer[4096];
 
     dir = opendir(curdir);
     
     while ((files = readdir(dir))) {
         memset(buffer, 0, sizeof(buffer));
-        stat(files->d_name, &directory);
-    
         if (strstr(files->d_name, "TMP")) {
             snprintf(buffer, sizeof(buffer), "%s/%s", curdir, files->d_name);
             if (remove(buffer))