X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-usleep.c;h=48c7234560a8528477bc3e9c91e969b37e48f473;hb=08c11765d4fe790403229496a8a3ec625a3ca5af;hp=a7921883331e1fbab1be4a0f8e293e3668afb078;hpb=89ae4589dd58d12e7cbcf0e92c1d828c1e430f97;p=gnulib.git diff --git a/tests/test-usleep.c b/tests/test-usleep.c index a79218833..48c723456 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-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 @@ -23,24 +23,12 @@ #include "signature.h" SIGNATURE_CHECK (usleep, int, (useconds_t)); -#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" int -main(void) +main (void) { time_t start = time (NULL); ASSERT (usleep (1000000) == 0);