From: nobuhiro <nobuhiro@andestech.com>
To: ltp-list@lists.sourceforge.net
Subject: [LTP] [PATCH] mmapstress03: consider passed when returning EINVAL in the large mmap test.
Date: Tue, 16 Jun 2009 17:45:38 +0800 [thread overview]
Message-ID: <1245145538-25870-1-git-send-email-nobuhiro@andestech.com> (raw)
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>
---
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);
--
1.6.3
------------------------------------------------------------------------------
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
next reply other threads:[~2009-06-16 9:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-16 9:45 nobuhiro [this message]
2009-06-18 17:31 ` [LTP] [PATCH] mmapstress03: consider passed when returning EINVAL in the large mmap test Subrata Modak
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=1245145538-25870-1-git-send-email-nobuhiro@andestech.com \
--to=nobuhiro@andestech.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