summaryrefslogtreecommitdiff
path: root/libio/bug-rewind2.c
diff options
context:
space:
mode:
Diffstat (limited to 'libio/bug-rewind2.c')
-rw-r--r--libio/bug-rewind2.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libio/bug-rewind2.c b/libio/bug-rewind2.c
index 51b5744330..496f628675 100644
--- a/libio/bug-rewind2.c
+++ b/libio/bug-rewind2.c
@@ -45,6 +45,11 @@ do_test (void)
rewind (fp);
ret = fwscanf (fp, L"%c", dummy);
+ if (ret != 1)
+ {
+ printf ("fwscanf returned %d, expected 1\n", ret);
+ result = 1;
+ }
printf ("current pos = %ld\n", ftell (fp));
if (ftell (fp) != 1)