DragonFly BSD
DragonFly bugs List (threaded) for 2005-12
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: freebsds pipe-reverse test fails on dfly


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Wed, 7 Dec 2005 11:19:20 -0800 (PST)

:hi folks,
:
:I tried some regression tests from freebsd and
:src/tools/regression/pipe/pipe-reverse.c[1] 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@xxxxxxxxxxxxx>



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]