X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-usleep.c;h=097c1725263eae603c17b55f0f9ac420bcec9d7f;hb=bbfcd2f1a92c9bdbb8d7d7d0a8a8c6665c316747;hp=a7921883331e1fbab1be4a0f8e293e3668afb078;hpb=89ae4589dd58d12e7cbcf0e92c1d828c1e430f97;p=gnulib.git diff --git a/tests/test-usleep.c b/tests/test-usleep.c index a79218833..097c17252 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-2013 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);