Bug #3
closedfreebsds pipe-reverse test fails on dfly
0%
Description
hi folks,
I tried some regression tests from freebsd and
src/tools/regression/pipe/pipe-reverse.c1 failed
% ./pipe-reverse
Wrote 32768 bytes, sleeping
Wrote another 8192 bytes, 40960 total, done
Read 16384 bytes, going back to sleep
Read 8192 bytes, done
FAILURE
maybe you want to take a look at it
1
http://www.freebsd.org/cgi/cvsweb.cgi/src/tools/regression/pipe/pipe-reverse.c
Updated by dillon almost 19 years ago
:hi folks,
:
:I tried some regression tests from freebsd and
:src/tools/regression/pipe/pipe-reverse.c1 failed
:
:% ./pipe-reverse
:Wrote 32768 bytes, sleeping
:Wrote another 8192 bytes, 40960 total, done
:Read 16384 bytes, going back to sleep
:Read 8192 bytes, done
:FAILURE
:
:maybe you want to take a look at it
:
:1
:http://www.freebsd.org/cgi/cvsweb.cgi/src/tools/regression/pipe/pipe-reverse.c
The test program is broken. read() calls to a pipe are not guarenteed
to return the number of bytes requested in the read() system call. They
can return fewer, and they do in this case.
-Matt
Matthew Dillon
<dillon@backplane.com>