X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-mkdir.c;h=86e6f8b4696992b40142f307b725e1d4bf2aca34;hb=96f8fde75f5197ff2d68e616ef41532b96fba64f;hp=1531e25c504b8a28b6642207c3c0bfabd6478c3c;hpb=89ae4589dd58d12e7cbcf0e92c1d828c1e430f97;p=gnulib.git diff --git a/tests/test-mkdir.c b/tests/test-mkdir.c index 1531e25c5..86e6f8b46 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-2011 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 @@ -30,17 +30,8 @@ SIGNATURE_CHECK (mkdir, int, (char const *, mode_t)); #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" @@ -50,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); }