git » libfiu » master » tree

[master] / tests / generated / tests / fread.conf

1
2
3
4
5
6
7
8
[fread]
fp: posix/stdio/rw/fread
include: stdio.h
prep: unsigned char buf[1024]; ssize_t r; FILE *fp = fopen("/dev/zero", "r");
call: r = fread(buf, 1, 1024, fp);
success_cond: r == 1024 && ferror(fp) == 0
failure_cond: r == 0 && ferror(fp) != 0
errno_on_fail: EIO