Hi ,

Here is some small correction in memory map stress testcases.

Result before applying patch:

[EMAIL PROTECTED] mmapstress]# ./mmapstress01 -h
./mmapstress01: invalid option -- h
usage: ./mmapstress01 -p nprocs [-t minutes -f filesize -S sparseoffset
-r -o -m -l -d]
mmapstress01    1  FAIL  :  Test failed

Result after applying patch:

[EMAIL PROTECTED] mmapstress]# ./mmapstress01 -h
./mmapstress01: invalid option -- h
usage: ./mmapstress01 -p nprocs [-t minutes -f filesize -S sparseoffset
-r -o -m -l -d]


Signed-off By: Rishikesh K Rajak <[EMAIL PROTECTED]>

Index: mmapstress/mmapstress01.c
===================================================================
--- mmapstress.orig/mmapstress01.c      2008-09-11 06:22:47.000000000
-0400
+++ mmapstress/mmapstress01.c   2008-09-11 06:24:20.000000000 -0400
@@ -166,7 +166,7 @@
        tst_tmpdir();
        if (argc < 2) {
                tst_resm(TBROK, "usage: %s %s\n", progname, usage);
-               anyfail();
+               tst_exit(0);
        }

        while ((c = getopt(argc, argv, "S:omdlrf:p:t:")) != -1) {
@@ -218,7 +218,7 @@
                        break;
                default:
                        (void)fprintf(stderr,"usage: %s %s\n", progname,
usage);
-                       anyfail();
+                       tst_exit(0);
                }
        }



-Rishi
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to