diff options
Diffstat (limited to 'gl/tests/test-select-stdin.c')
-rw-r--r-- | gl/tests/test-select-stdin.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gl/tests/test-select-stdin.c b/gl/tests/test-select-stdin.c index e9cee96f1f..c88698cd3f 100644 --- a/gl/tests/test-select-stdin.c +++ b/gl/tests/test-select-stdin.c @@ -24,6 +24,8 @@ #include <sys/time.h> #include <unistd.h> +#include "macros.h" + int main (void) { @@ -67,14 +69,15 @@ main (void) exit (1); } /* Timeout */ - printf ("."); fflush (stdout); + printf ("."); + ASSERT (fflush (stdout) == 0); } else { char c; printf ("Input available! Trying to read 1 byte...\n"); - read (0, &c, 1); + ASSERT (read (0, &c, 1) == 1); } } } |