From: Subrata Modak <subrata@linux.vnet.ibm.com>
To: naresh kamboju <naresh.kernel@gmail.com>
Cc: ltp-list@lists.sourceforge.net, maxin john <maxinbjohn@gmail.com>,
brinda_mn@yahoo.co.in, rohit.170309@gmail.com
Subject: Re: [LTP] [FIX PATCH] POSIX aio_write/8-2.c
Date: Tue, 16 Jun 2009 00:45:30 +0530 [thread overview]
Message-ID: <1245093330.4871.35.camel@subratamodak.linux.ibm.com> (raw)
In-Reply-To: <f5a7b3810906120640u7a290abcrd8fa52c36d82f754@mail.gmail.com>
On Fri, 2009-06-12 at 19:10 +0530, naresh kamboju wrote:
> Hi,
>
> I have noticed failures under
> testcases/open_posix_testsuite/conformance/interfaces/aio_write/8-2.c
> and fixed.
> Please find the patch below and as attachment.
>
> Best regards
> Naresh Kamboju
>
> Signed-off-by: Naresh Kamboju < naresh.kernel@gmail.com >
Done.
Regards--
Subrata
>
>
> diff -Naurb a/testcases/open_posix_testsuite/conformance/interfaces/aio_write/8-2.c
> b/testcases/open_posix_testsuite/conformance/interfaces/aio_write/8-2.c
> --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_write/8-2.c 2009-06-12
> 18:10:32.000000000 +0530
> +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_write/8-2.c 2009-06-12
> 18:00:21.000000000 +0530
> @@ -42,6 +42,7 @@
> char buf[BUF_SIZE];
> int fd;
> struct aiocb aiocb;
> + int ret=0;
>
> #if _POSIX_ASYNCHRONOUS_IO != 200112L
> exit(PTS_UNSUPPORTED);
> @@ -67,13 +68,21 @@
> aiocb.aio_buf = buf;
> aiocb.aio_nbytes = BUF_SIZE;
>
> - if (aio_write(&aiocb) != -1)
> + /*
> + * EBADF is encountered at a later stage
> + * and should be collected by aio_error()
> + */
> +
> + if (aio_write(&aiocb) != 0)
> {
> printf(TNAME " bad aio_write return value()\n");
> exit(PTS_FAIL);
> }
>
> - if (errno != EBADF)
> + while (aio_error(&aiocb) == EINPROGRESS);
> + ret = aio_error(&aiocb);
> +
> + if (ret != EBADF)
> {
> printf(TNAME " errno is not EBADF %s\n", strerror(errno));
> exit(PTS_FAIL);
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
prev parent reply other threads:[~2009-06-15 19:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-12 13:40 [LTP] [FIX PATCH] POSIX aio_write/8-2.c naresh kamboju
2009-06-15 19:15 ` Subrata Modak [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=1245093330.4871.35.camel@subratamodak.linux.ibm.com \
--to=subrata@linux.vnet.ibm.com \
--cc=brinda_mn@yahoo.co.in \
--cc=ltp-list@lists.sourceforge.net \
--cc=maxinbjohn@gmail.com \
--cc=naresh.kernel@gmail.com \
--cc=rohit.170309@gmail.com \
/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