projects
/
fw
/
pdclib
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Reworked scanf() testing. General cleanups.
[fw/pdclib]
/
functions
/
stdio
/
clearerr.c
diff --git
a/functions/stdio/clearerr.c
b/functions/stdio/clearerr.c
index af25029032f1fc4d79ec89654bb4bd690a81592e..af50f14f49531523784496424da245fec0c8c81f 100644
(file)
--- a/
functions/stdio/clearerr.c
+++ b/
functions/stdio/clearerr.c
@@
-28,6
+28,7
@@
int main( void )
TESTCASE( ! ferror( fh ) );
TESTCASE( ! feof( fh ) );
/* Reading from input stream - should provoke error */
TESTCASE( ! ferror( fh ) );
TESTCASE( ! feof( fh ) );
/* Reading from input stream - should provoke error */
+ /* FIXME: Apparently glibc disagrees on this assumption. How to provoke error on glibc? */
TESTCASE( fgetc( fh ) == EOF );
TESTCASE( ferror( fh ) );
TESTCASE( ! feof( fh ) );
TESTCASE( fgetc( fh ) == EOF );
TESTCASE( ferror( fh ) );
TESTCASE( ! feof( fh ) );