From: hefan <fhe@novell.com>
To: Garrett Cooper <yanegomi@gmail.com>
Cc: ltp-list@lists.sf.net
Subject: Re: [LTP] [PATCH 1/1] openposix_mmap_11_4
Date: Fri, 17 Jul 2009 14:37:55 +0800 [thread overview]
Message-ID: <1247812675.4917.14.camel@hefan.site> (raw)
In-Reply-To: <364299f40907162234g1df374d4xda8a74bf61f34057@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1084 bytes --]
hi,
*[Patch 1/1] Patch for fixing the failed testcase openposix_mmap_11_4
-modified the file
*testcases/open_posix_testsuite/conformance/interfaces/mmap/11-4.c
Signed-off-by: fredrick he <fhe@novell.com>
---
ltp.orig/testcases/open_posix_testsuite/conformance/interfaces/mmap/11-4.c 2009-07-17 11:53:36.000000000 +0800
+++
ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/11-4.c
2009-07-17 11:57:09.000000000 +0800
@@ -130,7 +130,9 @@ int main()
flag = MAP_SHARED;
off = 0;
pa = mmap(addr, len, prot, flag, fd_2, off);
- pa_2 = mmap(addr, len, prot, flag, fd_2, off);
+ addr = pa;
+ memset(addr,0,len*2);
+ pa_2 = mmap(addr, len, prot, flag|MAP_FIXED, fd_2, off);
if (pa_2 == MAP_FAILED)
{
printf("Test FAIL: " TNAME " Error at 2nd mmap(): %s\n",
--
Fan Fredrick He
R&D OPS QA Beijing PRC
Room 3603, Beijing Fortune Plaza, Office Tower A, No.7 Dongsanhuan Zhonglu, Chaoyang District, Beijing, P.R., 100020
SUSE LINUX Products
fhe@novell.com
Mainland-Mobile (86) 13661278596
[-- Attachment #2: open_posix_mmap_11-4.diff --]
[-- Type: text/x-patch, Size: 596 bytes --]
--- ltp.orig/testcases/open_posix_testsuite/conformance/interfaces/mmap/11-4.c 2009-07-17 11:53:36.000000000 +0800
+++ ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/11-4.c 2009-07-17 11:57:09.000000000 +0800
@@ -130,7 +130,9 @@ int main()
flag = MAP_SHARED;
off = 0;
pa = mmap(addr, len, prot, flag, fd_2, off);
- pa_2 = mmap(addr, len, prot, flag, fd_2, off);
+ addr = pa;
+ memset(addr,0,len*2);
+ pa_2 = mmap(addr, len, prot, flag|MAP_FIXED, fd_2, off);
if (pa_2 == MAP_FAILED)
{
printf("Test FAIL: " TNAME " Error at 2nd mmap(): %s\n",
[-- Attachment #3: Type: text/plain, Size: 389 bytes --]
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
[-- Attachment #4: Type: text/plain, Size: 155 bytes --]
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
next prev parent reply other threads:[~2009-07-17 6:38 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-17 4:07 [LTP] [PATCH 1/1] openposix_mmap_11_4 hefan
2009-07-17 5:34 ` Garrett Cooper
2009-07-17 6:37 ` hefan [this message]
2009-07-18 19:28 ` Garrett Cooper
2009-07-20 5:14 ` hefan
2009-07-20 5:54 ` Michal Simek
2009-07-20 7:46 ` Garrett Cooper
2009-07-20 9:26 ` hefan
-- strict thread matches above, loose matches on Subject: below --
2009-08-06 16:09 naresh kamboju
2009-08-07 12:41 ` Subrata Modak
2009-08-07 15:59 ` naresh kamboju
2009-08-10 8:20 ` 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=1247812675.4917.14.camel@hefan.site \
--to=fhe@novell.com \
--cc=ltp-list@lists.sf.net \
--cc=yanegomi@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