X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-nanosleep.c;h=bfa7ef01dd2b8400f89e42d90965b21d52a3da82;hb=84e7e349505e6961cc62fded69ba277474cc3d35;hp=eb4bef67a3a1ad5e813945999475f967e3e914af;hpb=a905b35027f406a031a844995b32b7b9291d0336;p=gnulib.git diff --git a/tests/test-nanosleep.c b/tests/test-nanosleep.c index eb4bef67a..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 @@ -20,25 +20,15 @@ #include +#include "signature.h" +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 @@ -50,7 +40,7 @@ handle_alarm (int sig) #endif int -main() +main (void) { struct timespec ts;