X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-sleep.c;h=3550e2b0f50a1505f679b276d3c746b2a40d9e3e;hb=8750d25d450a75684c2f29e2eea2467cea18f076;hp=48abce12f6c9268f6e8e99c2acac60d98679e56a;hpb=6baa46639c17d7fba1d6aa1a3dd8ed536b7b2dc9;p=gnulib.git diff --git a/tests/test-sleep.c b/tests/test-sleep.c index 48abce12f..3550e2b0f 100644 --- a/tests/test-sleep.c +++ b/tests/test-sleep.c @@ -1,5 +1,5 @@ /* Test of sleep() function. - Copyright (C) 2007-2009 Free Software Foundation, Inc. + Copyright (C) 2007-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,21 +20,12 @@ #include +#include "signature.h" +SIGNATURE_CHECK (sleep, unsigned int, (unsigned int)); + #include -#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" #if HAVE_DECL_ALARM static void @@ -46,7 +37,7 @@ handle_alarm (int sig) #endif int -main() +main (void) { ASSERT (sleep (1) <= 1);