X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-mkdir.c;h=47b242a429a68f332a1f3a3eab621f8a32ad650d;hb=a01b938c7f0c8e406c82d07cb921bf6c3c1e29df;hp=6a19c30039564aec6b8ec646c8bd7d9c430b67e0;hpb=2d4d7d9d00fe33b6f5291e00a30b6c1016775b74;p=gnulib.git diff --git a/tests/test-mkdir.c b/tests/test-mkdir.c index 6a19c3003..47b242a42 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,17 +30,8 @@ #include #include -#define ASSERT(expr) \ - do \ - { \ - if (!(expr)) \ - { \ - fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ - fflush (stderr); \ - abort (); \ - } \ - } \ - while (0) +#include "ignore-value.h" +#include "macros.h" #define BASE "test-mkdir.t" @@ -47,7 +41,7 @@ int main (void) { /* Clean up any trash from prior testsuite runs. */ - ASSERT (system ("rm -rf " BASE "*") == 0); + ignore_value (system ("rm -rf " BASE "*")); return test_mkdir (mkdir, true); }