projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
pipe2: silence compiler warning
[gnulib.git]
/
tests
/
test-usleep.c
diff --git
a/tests/test-usleep.c
b/tests/test-usleep.c
index
d6e62eb
..
48c7234
100644
(file)
--- a/
tests/test-usleep.c
+++ b/
tests/test-usleep.c
@@
-1,5
+1,5
@@
/* Test of usleep() function.
/* 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
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 <unistd.h>
#include <unistd.h>
-#include <stdio.h>
-#include <stdlib.h>
+#include "signature.h"
+SIGNATURE_CHECK (usleep, int, (useconds_t));
+
#include <time.h>
#include <time.h>
-#define ASSERT(expr) \
- do \
- { \
- if (!(expr)) \
- { \
- fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \
- fflush (stderr); \
- abort (); \
- } \
- } \
- while (0)
+#include "macros.h"
int
int
-main(void)
+main
(void)
{
time_t start = time (NULL);
ASSERT (usleep (1000000) == 0);
{
time_t start = time (NULL);
ASSERT (usleep (1000000) == 0);