X-Git-Url: https://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=tests%2Ftest-mkfifoat.c;h=0b2018173d0226d17bdd0c0405aee55216a1b3a2;hb=9c40f34443ba034ee7890ab10c369a903417765d;hp=fca3411b3e6842310c172fcbdac782406dcebc6e;hpb=5ca4b90d06ed5871ed0bf7bd59dbbf23b69a00ea;p=gnulib.git diff --git a/tests/test-mkfifoat.c b/tests/test-mkfifoat.c index fca3411b3..0b2018173 100644 --- a/tests/test-mkfifoat.c +++ b/tests/test-mkfifoat.c @@ -20,6 +20,10 @@ #include +#include "signature.h" +SIGNATURE_CHECK (mkfifoat, int, (int, char const *, mode_t)); +SIGNATURE_CHECK (mknodat, int, (int, char const *, mode_t, dev_t)); + #include #include #include @@ -28,17 +32,7 @@ #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" @@ -78,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);