projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
*alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
[gnulib.git]
/
tests
/
test-select-stdin.c
diff --git
a/tests/test-select-stdin.c
b/tests/test-select-stdin.c
index
e9cee96
..
75dd855
100644
(file)
--- a/
tests/test-select-stdin.c
+++ b/
tests/test-select-stdin.c
@@
-1,5
+1,5
@@
/* Test of select() substitute, reading from stdin.
/* Test of select() substitute, reading from stdin.
- Copyright (C) 2008
, 2009, 2010
Free Software Foundation, Inc.
+ Copyright (C) 2008
-2012
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
@@
-24,6
+24,8
@@
#include <sys/time.h>
#include <unistd.h>
#include <sys/time.h>
#include <unistd.h>
+#include "macros.h"
+
int
main (void)
{
int
main (void)
{
@@
-67,14
+69,15
@@
main (void)
exit (1);
}
/* Timeout */
exit (1);
}
/* Timeout */
- printf ("."); fflush (stdout);
+ printf (".");
+ ASSERT (fflush (stdout) == 0);
}
else
{
char c;
printf ("Input available! Trying to read 1 byte...\n");
}
else
{
char c;
printf ("Input available! Trying to read 1 byte...\n");
-
read (0, &c,
1);
+
ASSERT (read (0, &c, 1) ==
1);
}
}
}
}
}
}