* [LTP] aio_read/8-1.c fails
@ 2012-03-08 6:00 Kang Kai
2012-03-08 8:29 ` Kang Kai
2012-03-08 11:54 ` Cyril Hrubis
0 siblings, 2 replies; 4+ messages in thread
From: Kang Kai @ 2012-03-08 6:00 UTC (permalink / raw)
To: ltp-list
Hi All,
aio_read/8-1.c "fills in an aiocb with a NULL aio_buf" and then expect
that the operation is not succesfully queued.
It fails that aio_read() always return 0. And I checked the posix spec
and didn't find that an aiocb with NULL aio_buf will cause enqueue fails.
So is this case valid?
Thanks,
Kai
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [LTP] aio_read/8-1.c fails
2012-03-08 6:00 [LTP] aio_read/8-1.c fails Kang Kai
@ 2012-03-08 8:29 ` Kang Kai
2012-03-08 11:54 ` Cyril Hrubis
1 sibling, 0 replies; 4+ messages in thread
From: Kang Kai @ 2012-03-08 8:29 UTC (permalink / raw)
To: ltp-list
On 2012年03月08日 14:00, Kang Kai wrote:
> Hi All,
>
> aio_read/8-1.c "fills in an aiocb with a NULL aio_buf" and then expect
> that the operation is not succesfully queued.
> It fails that aio_read() always return 0. And I checked the posix spec
> and didn't find that an aiocb with NULL aio_buf will cause enqueue fails.
> So is this case valid?
So does the case aio_write/6-1.c.
>
> Thanks,
> Kai
>
> ------------------------------------------------------------------------------
> Virtualization& Cloud Management Using Capacity Planning
> Cloud computing makes use of virtualization - but cloud computing
> also focuses on allowing computing to be delivered as a service.
> http://www.accelacomm.com/jaw/sfnl/114/51521223/
> _______________________________________________
> Ltp-list mailing list
> Ltp-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ltp-list
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [LTP] aio_read/8-1.c fails
2012-03-08 6:00 [LTP] aio_read/8-1.c fails Kang Kai
2012-03-08 8:29 ` Kang Kai
@ 2012-03-08 11:54 ` Cyril Hrubis
[not found] ` <4F5969C9.2020508@windriver.com>
1 sibling, 1 reply; 4+ messages in thread
From: Cyril Hrubis @ 2012-03-08 11:54 UTC (permalink / raw)
To: Kang Kai; +Cc: ltp-list
Hi!
> aio_read/8-1.c "fills in an aiocb with a NULL aio_buf" and then expect
> that the operation is not succesfully queued.
> It fails that aio_read() always return 0. And I checked the posix spec
> and didn't find that an aiocb with NULL aio_buf will cause enqueue fails.
> So is this case valid?
The testcase passes here. However looking at the sources it tries to
read zero bytes to NULL buffer, which is wrong as the behavior in such
case is undefied by POSIX. I guess this is just another case where the
testcase was coded with "It works so it must be right" attitude.
And out of curiosity, which libc library makes the testcase fail?
--
Cyril Hrubis
chrubis@suse.cz
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-03-09 13:37 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-08 6:00 [LTP] aio_read/8-1.c fails Kang Kai
2012-03-08 8:29 ` Kang Kai
2012-03-08 11:54 ` Cyril Hrubis
[not found] ` <4F5969C9.2020508@windriver.com>
2012-03-09 13:38 ` Cyril Hrubis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox