X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-mkfifoat.c;h=01fc4da5501e7b1953f57107eb2c51959aa175b6;hb=6d273bef42e648ae9bd1d60923d2a4c8fc5dca94;hp=1c6656e147b39d3fab8a0272971a4000f55efc54;hpb=89ae4589dd58d12e7cbcf0e92c1d828c1e430f97;p=gnulib.git diff --git a/tests/test-mkfifoat.c b/tests/test-mkfifoat.c index 1c6656e14..01fc4da55 100644 --- a/tests/test-mkfifoat.c +++ b/tests/test-mkfifoat.c @@ -1,5 +1,5 @@ /* Tests of mkfifoat and mknodat. - 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 @@ -32,17 +32,7 @@ SIGNATURE_CHECK (mknodat, int, (int, char const *, mode_t, dev_t)); #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-mkfifoat.t" @@ -82,7 +72,7 @@ main (void) int result; /* Remove any leftovers from a previous partial run. */ - ASSERT (system ("rm -rf " BASE "*") == 0); + system ("rm -rf " BASE "*"); /* Basic tests. */ result = test_mkfifo (do_mkfifoat, true);