From: Anders Björklund Date: Wed, 17 Feb 2016 20:48:23 +0000 (+0100) Subject: Windows version of rm, to remove testdir X-Git-Tag: v3.3~107 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a37417ff33eb75534414124cc9432f9a9ab2ef1;p=thirdparty%2Fccache.git Windows version of rm, to remove testdir --- diff --git a/test/framework.c b/test/framework.c index 44f0c7d60..e232afef0 100644 --- a/test/framework.c +++ b/test/framework.c @@ -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); }