X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=tests%2Ftest-mkfifo.c;h=1c6d0c58f93c1526bd1c62d5c0f735f2e4846043;hb=fac94349f25305566277d15b965fa8f4efe66613;hp=3a0336c330d9ca2672f44aee9373a014fbbd4ce2;hpb=08166afd7322d40407cf62e3c98b97782d7d1af0;p=gnulib.git diff --git a/tests/test-mkfifo.c b/tests/test-mkfifo.c index 3a0336c33..1c6d0c58f 100644 --- a/tests/test-mkfifo.c +++ b/tests/test-mkfifo.c @@ -1,5 +1,5 @@ /* Tests of mkfifo. - 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 @@ -20,6 +20,9 @@ #include +#include "signature.h" +SIGNATURE_CHECK (mkfifo, 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-mkfifo.t" @@ -47,7 +41,7 @@ int main (void) { /* Remove any leftovers from a previous partial run. */ - ASSERT (system ("rm -rf " BASE "*") == 0); + ignore_value (system ("rm -rf " BASE "*")); return test_mkfifo (mkfifo, true); }