]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Windows version of rm, to remove testdir
authorAnders Björklund <anders@itension.se>
Wed, 17 Feb 2016 20:48:23 +0000 (21:48 +0100)
committerAnders Björklund <anders@itension.se>
Thu, 18 Feb 2016 22:33:02 +0000 (23:33 +0100)
test/framework.c

index 44f0c7d60c2e769a98c04a32c4ab54aa1877e732..e232afef0eaa391fbdc6aae73854dddc242f5ce5 100644 (file)
@@ -263,7 +263,11 @@ void
 cct_wipe(const char *path)
 {
        /* TODO: rewrite using traverse(). */
+#ifndef __MINGW32__
        char *command = format("rm -rf %s", path);
+#else
+       char *command = format("rd /s /q %s", path);
+#endif
        if (system(command) != 0) {
                perror(command);
        }