* tests/test-select-stdin.c: Include "macros.h".
ASSERT that read and fflush succeed.
+2010-10-13 Jim Meyering <meyering@redhat.com>
+
+ test-select-stdin.c: avoid warn_unused_result warnings
+ * tests/test-select-stdin.c: Include "macros.h".
+ ASSERT that read and fflush succeed.
+
2010-10-13 Jim Meyering <meyering@redhat.com>
git-version-gen: do require git-VC'd files in cwd
#include <sys/time.h>
#include <unistd.h>
+#include "macros.h"
+
int
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);
}
}
}