X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-mkdir.c;h=771758e2958ee67714b85b48563f79ef07fffb25;hb=4818e199e6df0569802336b58277b2d633a23ddd;hp=cc51fcef180be39038d052bbaef0edddcee73918;hpb=da8f2a565cd9522f2a3a1400e538d1853374aa08;p=gnulib.git diff --git a/tests/test-mkdir.c b/tests/test-mkdir.c index cc51fcef1..771758e29 100644 --- a/tests/test-mkdir.c +++ b/tests/test-mkdir.c @@ -1,5 +1,5 @@ /* Tests of mkdir. - Copyright (C) 2009 Free Software Foundation, Inc. + Copyright (C) 2009, 2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -20,6 +20,9 @@ #include +#include "signature.h" +SIGNATURE_CHECK (mkdir, int, (char const *, mode_t)); + #include #include #include @@ -27,27 +30,17 @@ #include #include -#define ASSERT(expr) \ - do \ - { \ - if (!(expr)) \ - { \ - fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ - fflush (stderr); \ - abort (); \ - } \ - } \ - while (0) +#include "macros.h" #define BASE "test-mkdir.t" #include "test-mkdir.h" int -main () +main (void) { /* Clean up any trash from prior testsuite runs. */ - ASSERT (system ("rm -rf " BASE "*") == 0); + system ("rm -rf " BASE "*"); return test_mkdir (mkdir, true); }