Hi Caspar, Cyril:

Thanks for Caspar's hard review.
I'd like to be commited on this version. ;-P

this version also remove the -c option in runtest, because
---
The -c option is broken by desing. See:

http://www.mail-archive.com/[email protected]/msg13418.html

In short don't use it in runtest files as the option will be removed.
---



Below is the test result after patched now.
------------------
<<<test_start>>>
tag=hugemmap01 stime=1328688879
cmdline="hugemmap01"
contacts=""
analysis=exit
<<<test_output>>>
hugemmap01    0  TINFO  :  set nr_hugepages to 1024
hugemmap01    1  TPASS  :  call succeeded
<<<execution_status>>>
initiation_status="ok"
duration=0 termination_type=exited termination_id=0 corefile=no
cutime=0 cstime=1
<<<test_end>>>
<<<test_start>>>
tag=hugemmap02 stime=1328688879
cmdline="hugemmap02"
contacts=""
analysis=exit
<<<test_output>>>
hugemmap02    0  TINFO  :  set nr_hugepages to 1024
hugemmap02    1  TPASS  :  huge mmap succeeded (64-bit)
<<<execution_status>>>
initiation_status="ok"
duration=0 termination_type=exited termination_id=0 corefile=no
cutime=0 cstime=1
<<<test_end>>>
<<<test_start>>>
tag=hugemmap03 stime=1328688879
cmdline="hugemmap03 -I2"
contacts=""
analysis=exit
<<<test_output>>>
hugemmap03    0  TINFO  :  set nr_hugepages to 1024
hugemmap03    1  TPASS  :  Normal mmap() into high region failed correctly
<<<execution_status>>>
initiation_status="ok"
duration=0 termination_type=exited termination_id=0 corefile=no
cutime=0 cstime=0
<<<test_end>>>
<<<test_start>>>
tag=hugemmap04 stime=1328688879
cmdline="hugemmap04"
contacts=""
analysis=exit
<<<test_output>>>
hugemmap04    0  TINFO  :  set nr_hugepages to 1024
hugemmap04    0  TINFO  :  Size of huge pages is 2048 KB
hugemmap04    1  TFAIL  :  mmap() Failed on 
/tmp/ltp-LokXwj8loN/hugymMfMB/mmapfile4601: errno=ENOMEM(12): Cannot allocate 
memory
<<<execution_status>>>
initiation_status="ok"
duration=2 termination_type=exited termination_id=1 corefile=no
cutime=1 cstime=2
<<<test_end>>>
-------------------------------------------

Thanks
-Wanlong Gao

Wanlong Gao (4):
  hugemmap01: auto mount the temporary dir for testing
  hugemmap02: auto mount the temporary dir for testing
  hugemmap03: auto mount the temporary dir for testing
  hugemmap04: auto mount the temporary dir for testing

 runtest/hugetlb                                    |    8 ++--
 testcases/kernel/mem/hugetlb/hugemmap/Makefile     |   11 ++++
 testcases/kernel/mem/hugetlb/hugemmap/hugemmap01.c |   52 ++++++++++++-------
 testcases/kernel/mem/hugetlb/hugemmap/hugemmap02.c |   47 ++++++++++++------
 testcases/kernel/mem/hugetlb/hugemmap/hugemmap03.c |   52 ++++++++++++-------
 testcases/kernel/mem/hugetlb/hugemmap/hugemmap04.c |   51 ++++++++++++-------
 6 files changed, 144 insertions(+), 77 deletions(-)

-- 
1.7.9


------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to