X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=tests%2Ftest-nanosleep.c;h=bfa7ef01dd2b8400f89e42d90965b21d52a3da82;hb=58b5448dee62071b0d505f4e010652420e76d101;hp=e4e7231640a13f8c0940ca6bbc74c6f2acf628d3;hpb=89ae4589dd58d12e7cbcf0e92c1d828c1e430f97;p=gnulib.git diff --git a/tests/test-nanosleep.c b/tests/test-nanosleep.c index e4e723164..bfa7ef01d 100644 --- a/tests/test-nanosleep.c +++ b/tests/test-nanosleep.c @@ -1,5 +1,5 @@ /* Test of nanosleep() function. - 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 @@ -21,27 +21,14 @@ #include #include "signature.h" -SIGNATURE_CHECK (nanosleep, int, (struct timespec const *, struct timepec *)); +SIGNATURE_CHECK (nanosleep, int, (struct timespec const *, struct timespec *)); #include #include -#include -#include #include #include "intprops.h" - -#define ASSERT(expr) \ - do \ - { \ - if (!(expr)) \ - { \ - fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ - fflush (stderr); \ - abort (); \ - } \ - } \ - while (0) +#include "macros.h" #if HAVE_DECL_ALARM static void