public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Subrata Modak <subrata@linux.vnet.ibm.com>
To: nobuhiro <nobuhiro@andestech.com>
Cc: ltp-list@lists.sourceforge.net
Subject: Re: [LTP] [PATCH] mmapstress03: consider passed when returning	EINVAL	in the large mmap test.
Date: Thu, 18 Jun 2009 23:01:46 +0530	[thread overview]
Message-ID: <1245346306.5041.38.camel@subratamodak.linux.ibm.com> (raw)
In-Reply-To: <1245145538-25870-1-git-send-email-nobuhiro@andestech.com>

On Tue, 2009-06-16 at 17:45 +0800, nobuhiro wrote: 
> Some architectures may return EINVAL instead of ENOMEM.
> This should also be ok according to mmap manual:
> EINVAL We don't like addr, length, or offset (e.g., they are too large, or not aligned on a page boundary).
> 
> Signed-off-by: nobuhiro <nobuhiro@andestech.com>

Thanks.

Regards--
Subrata

> ---
>  testcases/kernel/mem/mmapstress/mmapstress03.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/testcases/kernel/mem/mmapstress/mmapstress03.c b/testcases/kernel/mem/mmapstress/mmapstress03.c
> index 8b41959..3ce5540 100644
> --- a/testcases/kernel/mem/mmapstress/mmapstress03.c
> +++ b/testcases/kernel/mem/mmapstress/mmapstress03.c
> @@ -166,8 +166,8 @@ main(int argc, char *argv[])
>  		ERROR("really large mmap didn't fail");
>                  anyfail();
>  	}
> -	if (errno != ENOMEM) {
> -		ERROR("really large mmap didn't set errno = ENOMEM");
> +	if (errno != ENOMEM && errno != EINVAL) {
> +		ERROR("really large mmap didn't set errno = ENOMEM nor EINVAL");
>                  anyfail();
>  	}
>  	(void)time(&t);


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

      reply	other threads:[~2009-06-18 17:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-16  9:45 [LTP] [PATCH] mmapstress03: consider passed when returning EINVAL in the large mmap test nobuhiro
2009-06-18 17:31 ` 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=1245346306.5041.38.camel@subratamodak.linux.ibm.com \
    --to=subrata@linux.vnet.ibm.com \
    --cc=ltp-list@lists.sourceforge.net \
    --cc=nobuhiro@andestech.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