public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Kang Kai <Kai.Kang@windriver.com>
To: gaowanlong@cn.fujitsu.com
Cc: ltp-list@lists.sourceforge.net
Subject: Re: [LTP] [PATCH] aio_cancel/3-1: call aio_read before aio_cancel
Date: Thu, 16 Feb 2012 14:13:52 +0800	[thread overview]
Message-ID: <4F3C9EA0.1050308@windriver.com> (raw)
In-Reply-To: <4F3C7747.4090403@cn.fujitsu.com>

On 2012年02月16日 11:25, Wanlong Gao wrote:

Hi WanLong,

> On 02/16/2012 10:41 AM, Kang Kai wrote:
>
>> The case calls aio_error() with an invalid aiocbp, but it should do
>> some asynchronous I/O operations first, so call aio_read() and then
>> test the aio_error().
>
> NACK. If so, the error is from aio_read but not from aio_error.
> This was discussed long time ago, please refer to the mail archive.
>
> This test case is right, but this FAIL is not hard in POSIX,
> so we changed the result from FAIL to UNRESOLVED now.
OK, I got it.
Thanks.

Kai

>
> So, just let it UNRESOLVED. ;)
>
> Thanks
> -Wanlong Gao
>
>> Signed-off-by: Kang Kai<kai.kang@windriver.com>
>> ---
>>   .../conformance/interfaces/aio_error/3-1.c         |    5 ++++-
>>   1 files changed, 4 insertions(+), 1 deletions(-)
>>
>> diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_error/3-1.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_error/3-1.c
>> index 8b6c2f5..6665da1 100644
>> --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_error/3-1.c
>> +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_error/3-1.c
>> @@ -68,6 +68,9 @@ int main()
>>   	aiocb.aio_reqprio = -1;
>>   	aiocb.aio_nbytes = BUF_SIZE;
>>
>> +	/* Just do aio_read() or aio_write */
>> +	aio_read(&aiocb);
>> +
>>   	ret = aio_error(&aiocb);
>>
>>   	if (ret != EINVAL)
>> @@ -80,4 +83,4 @@ int main()
>>   	close(fd);
>>   	printf ("Test PASSED\n");
>>   	return PTS_PASS;
>> -}
>> \ No newline at end of file
>> +}
>


------------------------------------------------------------------------------
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

      reply	other threads:[~2012-02-16  6:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-16  2:41 [LTP] [PATCH] aio_cancel/3-1: call aio_read before aio_cancel Kang Kai
2012-02-16  3:25 ` Wanlong Gao
2012-02-16  6:13   ` Kang Kai [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F3C9EA0.1050308@windriver.com \
    --to=kai.kang@windriver.com \
    --cc=gaowanlong@cn.fujitsu.com \
    --cc=ltp-list@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox