X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-usleep.c;h=58fdc7c4be6d4a43518c8bbc83fe18432f9dca25;hb=5f1cfee9e825db39e75bc2388856fb274d395e20;hp=d6e62ebe4d4447f4bb142c326d3654dafc699af4;hpb=e8eecfd3f7d37692a7b87779b69d6fdc22d88d4d;p=gnulib.git diff --git a/tests/test-usleep.c b/tests/test-usleep.c index d6e62ebe4..58fdc7c4b 100644 --- a/tests/test-usleep.c +++ b/tests/test-usleep.c @@ -1,5 +1,5 @@ /* Test of usleep() 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,24 +20,15 @@ #include -#include -#include +#include "signature.h" +SIGNATURE_CHECK (usleep, int, (useconds_t)); + #include -#define ASSERT(expr) \ - do \ - { \ - if (!(expr)) \ - { \ - fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ - fflush (stderr); \ - abort (); \ - } \ - } \ - while (0) +#include "macros.h" int -main(void) +main (void) { time_t start = time (NULL); ASSERT (usleep (1000000) == 0);