From 3b9c8744898823a4b09917f0540a324318fef726 Mon Sep 17 00:00:00 2001 From: Andrea Canciani Date: Tue, 14 Jun 2011 15:33:18 +0200 Subject: [PATCH] test: Use POSIX-compatible unlink On Win32, the POSIX-compatible unlink function is named "_unlink". A function named "unlink" exists, but does not have the same behavior as the POSIX-specified one. This function makes the cairo test suite behave incorrectly and immediately terminate with the message: Error: Cannot remove cairo-test-suite.log: No error --- test/cairo-test.c | 1 + 1 file changed, 1 insertion(+) diff --git a/test/cairo-test.c b/test/cairo-test.c index e03f9f71d..b438e0718 100644 --- a/test/cairo-test.c +++ b/test/cairo-test.c @@ -75,6 +75,7 @@ #include #define vsnprintf _vsnprintf #define access _access +#define unlink _unlink #define F_OK 0 #endif