Skip to contentSkip to conversation

fix "eventfd01" test

PATCH In review Mitani 3 participants 6 messages Apr 8, 2010 – Apr 15, 2010

lore
Share & tools
lore

Mitani

author
#0 lore raw

PATCH 1/1 fix "eventfd01" test

Hi,

I tried "eventfd01" test in my system.
This test failed with TWARN (return code:4) :

------------

  eventfd01    1  TCONF  :  2.6.22 or greater kernel required
  eventfd01    2  TCONF  :  Remaining cases not appropriate for

configuration
eventfd01 3 TCONF : Remaining cases not appropriate for
configuration
eventfd01 4 TCONF : Remaining cases not appropriate for
configuration
eventfd01 5 TCONF : Remaining cases not appropriate for
configuration
eventfd01 6 TCONF : Remaining cases not appropriate for
configuration
eventfd01 7 TCONF : Remaining cases not appropriate for
configuration
eventfd01 8 TCONF : Remaining cases not appropriate for
configuration
eventfd01 9 TCONF : Remaining cases not appropriate for
configuration
eventfd01 10 TCONF : Remaining cases not appropriate for
configuration
eventfd01 11 TCONF : Remaining cases not appropriate for
configuration
eventfd01 12 TCONF : Remaining cases not appropriate for
configuration
eventfd01 13 TCONF : Remaining cases not appropriate for
configuration
eventfd01 14 TCONF : Remaining cases not appropriate for
configuration
eventfd01 15 TCONF : Remaining cases not appropriate for
configuration
eventfd01 0 TWARN : tst_rmdir(): TESTDIR was NULL; no removal
attempted
------------

My system's kernel level is 2.6.18-164.el5
Therefore this test rejected:

------< eventfd01.c - main() >------
if (tst_kvercmp(2, 6, 22) < 0)
tst_brkm(TCONF, cleanup, "2.6.22 or greater kernel
required");
------------

But, this "tst_brkm()" called "cleanup()".
"tst_rmdir()" is called in "cleanup()", and this checked "TESTDIR":

------< tst_tmpdir.c - tst_rmdir() >------
/*
* Check that TESTDIR is not NULL.
*/

   if ( TESTDIR == NULL ) {
      tst_resm(TWARN, "%s: TESTDIR was NULL; no removal attempted",
               FN_NAME);
      return;

}
------------

This TWARN caused FAIL.
"TESTDIR" is NULL because the test didn't start.

I think that "cleanup()" doesn't have to be called in this case.

============
--- a/testcases/kernel/syscalls/eventfd/eventfd01.c 2010-04-01
15:23:10.000000000 +0900
+++ b/testcases/kernel/syscalls/eventfd/eventfd01.c 2010-04-08
17:16:35.000000000 +0900
@@ -728,8 +728,10 @@

        /* capture signals */
        tst_sig(FORK, DEF_HANDLER, cleanup);

- if (tst_kvercmp(2, 6, 22) < 0)
- tst_brkm(TCONF, cleanup, "2.6.22 or greater kernel
required");
+ if (tst_kvercmp(2, 6, 22) < 0) {
+ tst_brkm(TCONF, NULL, "2.6.22 or greater kernel required");
+ tst_exit();
+ }

        /* Create a temporary directory & chdir there */
        tst_tmpdir();

============

Thank you--

-Tomonori Mitani

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

#1 lore raw
Quoted 91 lines · Mitani

Hi,

I tried "eventfd01" test in my system.
This test failed with TWARN (return code:4) :

------------

 eventfd01    1  TCONF  :  2.6.22 or greater kernel required
 eventfd01    2  TCONF  :  Remaining cases not appropriate for

configuration
eventfd01 3 TCONF : Remaining cases not appropriate for
configuration
eventfd01 4 TCONF : Remaining cases not appropriate for
configuration
eventfd01 5 TCONF : Remaining cases not appropriate for
configuration
eventfd01 6 TCONF : Remaining cases not appropriate for
configuration
eventfd01 7 TCONF : Remaining cases not appropriate for
configuration
eventfd01 8 TCONF : Remaining cases not appropriate for
configuration
eventfd01 9 TCONF : Remaining cases not appropriate for
configuration
eventfd01 10 TCONF : Remaining cases not appropriate for
configuration
eventfd01 11 TCONF : Remaining cases not appropriate for
configuration
eventfd01 12 TCONF : Remaining cases not appropriate for
configuration
eventfd01 13 TCONF : Remaining cases not appropriate for
configuration
eventfd01 14 TCONF : Remaining cases not appropriate for
configuration
eventfd01 15 TCONF : Remaining cases not appropriate for
configuration
eventfd01 0 TWARN : tst_rmdir(): TESTDIR was NULL; no removal
attempted
------------

My system's kernel level is 2.6.18-164.el5
Therefore this test rejected:

------< eventfd01.c - main() >------
if (tst_kvercmp(2, 6, 22) < 0)
tst_brkm(TCONF, cleanup, "2.6.22 or greater kernel
required");
------------

But, this "tst_brkm()" called "cleanup()".
"tst_rmdir()" is called in "cleanup()", and this checked "TESTDIR":

------< tst_tmpdir.c - tst_rmdir() >------
/*
* Check that TESTDIR is not NULL.
*/

  if ( TESTDIR == NULL ) {
     tst_resm(TWARN, "%s: TESTDIR was NULL; no removal attempted",
              FN_NAME);
     return;

}
------------

This TWARN caused FAIL.
"TESTDIR" is NULL because the test didn't start.

I think that "cleanup()" doesn't have to be called in this case.

============
--- a/testcases/kernel/syscalls/eventfd/eventfd01.c 2010-04-01
15:23:10.000000000 +0900
+++ b/testcases/kernel/syscalls/eventfd/eventfd01.c 2010-04-08
17:16:35.000000000 +0900

(quoted diff) +4 -2
@@ -728,8 +728,10 @@
       /* capture signals */
       tst_sig(FORK, DEF_HANDLER, cleanup);
 
-       if (tst_kvercmp(2, 6, 22) < 0)
-               tst_brkm(TCONF, cleanup, "2.6.22 or greater kernel
 required");
+       if (tst_kvercmp(2, 6, 22) < 0) {
+               tst_brkm(TCONF, NULL, "2.6.22 or greater kernel  
 required");
+               tst_exit();
+       }
 
       /* Create a temporary directory & chdir there */
       tst_tmpdir();
Quoted 1 line

============

Try tst_exit instead of NULL.
Cheers,
-Garrett

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

author
#2 lore raw

Hi Garrett,

Quoted 101 lines

-----Original Message-----
From: Garrett Cooper [mailto:[email protected]]
Sent: Friday, April 09, 2010 2:35 AM
To: Mitani
Cc: <[email protected]>
Subject: Re: [LTP] [PATCH] fix "eventfd01" test

Quoted 29 lines · Mitani

Hi,

I tried "eventfd01" test in my system.
This test failed with TWARN (return code:4) :

------------

 eventfd01    1  TCONF  :  2.6.22 or greater kernel required
 eventfd01    2  TCONF  :  Remaining cases not appropriate for

configuration
eventfd01 3 TCONF : Remaining cases not appropriate for
configuration
eventfd01 4 TCONF : Remaining cases not appropriate for
configuration
eventfd01 5 TCONF : Remaining cases not appropriate for
configuration
eventfd01 6 TCONF : Remaining cases not appropriate for
configuration
eventfd01 7 TCONF : Remaining cases not appropriate for
configuration
eventfd01 8 TCONF : Remaining cases not appropriate for
configuration
eventfd01 9 TCONF : Remaining cases not appropriate for
configuration
eventfd01 10 TCONF : Remaining cases not appropriate for
configuration
eventfd01 11 TCONF : Remaining cases not appropriate for
configuration
eventfd01 12 TCONF : Remaining cases not appropriate for

Quoted 8 lines

configuration
eventfd01 13 TCONF : Remaining cases not appropriate for
configuration
eventfd01 14 TCONF : Remaining cases not appropriate for
configuration
eventfd01 15 TCONF : Remaining cases not appropriate for
configuration
eventfd01 0 TWARN : tst_rmdir(): TESTDIR was NULL; no

removal

Quoted 29 lines

attempted
------------

My system's kernel level is 2.6.18-164.el5
Therefore this test rejected:

------< eventfd01.c - main() >------
if (tst_kvercmp(2, 6, 22) < 0)
tst_brkm(TCONF, cleanup, "2.6.22 or greater kernel
required");
------------

But, this "tst_brkm()" called "cleanup()".
"tst_rmdir()" is called in "cleanup()", and this checked "TESTDIR":

------< tst_tmpdir.c - tst_rmdir() >------
/*
* Check that TESTDIR is not NULL.
*/

  if ( TESTDIR == NULL ) {
     tst_resm(TWARN, "%s: TESTDIR was NULL; no removal attempted",
              FN_NAME);
     return;

}
------------

This TWARN caused FAIL.
"TESTDIR" is NULL because the test didn't start.

Quoted 7 lines

I think that "cleanup()" doesn't have to be called in this case.

============
--- a/testcases/kernel/syscalls/eventfd/eventfd01.c

2010-04-01

Quoted 2 lines

15:23:10.000000000 +0900
+++ b/testcases/kernel/syscalls/eventfd/eventfd01.c

2010-04-08

Quoted 14 lines

17:16:35.000000000 +0900

(quoted diff) +4 -2
@@ -728,8 +728,10 @@
       /* capture signals */
       tst_sig(FORK, DEF_HANDLER, cleanup);
 
-       if (tst_kvercmp(2, 6, 22) < 0)
-               tst_brkm(TCONF, cleanup, "2.6.22 or greater kernel
 required");
+       if (tst_kvercmp(2, 6, 22) < 0) {
+               tst_brkm(TCONF, NULL, "2.6.22 or greater kernel
 required");
+               tst_exit();
+       }
 
Quoted 7 lines
Quoted 3 lines
       /* Create a temporary directory & chdir there */
       tst_tmpdir();

============

Try tst_exit instead of NULL.
Cheers,
-Garrett

Oh, I didn't notice it!

I revised my patch by advice of Garrett, and confirmed that it worked as I intended.
I want to suggest patch again.

============
--- a/testcases/kernel/syscalls/eventfd/eventfd01.c 2010-04-01
15:23:10.000000000 +0900
+++ b/testcases/kernel/syscalls/eventfd/eventfd01.c 2010-04-09
09:06:48.000000000 +0900
@@ -729,7 +729,7 @@

        tst_sig(FORK, DEF_HANDLER, cleanup);

        if (tst_kvercmp(2, 6, 22) < 0)

- tst_brkm(TCONF, cleanup, "2.6.22 or greater kernel
required");
+ tst_brkm(TCONF, tst_exit, "2.6.22 or greater kernel
required");

        /* Create a temporary directory & chdir there */
        tst_tmpdir();

============

Thank you--

-Tomonori Mitani

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

author
#3 lore raw
In reply to Garrett Cooper

Sorry.
My patch was destroyed by e-mail.
I attach patch for "eventfd01.c" file.

Regards--

-Tomonori Mitani

Quoted 101 lines

-----Original Message-----
From: Garrett Cooper [mailto:[email protected]]
Sent: Friday, April 09, 2010 2:35 AM
To: Mitani
Cc: <[email protected]>
Subject: Re: [LTP] [PATCH] fix "eventfd01" test

Quoted 29 lines · Mitani

Hi,

I tried "eventfd01" test in my system.
This test failed with TWARN (return code:4) :

------------

 eventfd01    1  TCONF  :  2.6.22 or greater kernel required
 eventfd01    2  TCONF  :  Remaining cases not appropriate for

configuration
eventfd01 3 TCONF : Remaining cases not appropriate for
configuration
eventfd01 4 TCONF : Remaining cases not appropriate for
configuration
eventfd01 5 TCONF : Remaining cases not appropriate for
configuration
eventfd01 6 TCONF : Remaining cases not appropriate for
configuration
eventfd01 7 TCONF : Remaining cases not appropriate for
configuration
eventfd01 8 TCONF : Remaining cases not appropriate for
configuration
eventfd01 9 TCONF : Remaining cases not appropriate for
configuration
eventfd01 10 TCONF : Remaining cases not appropriate for
configuration
eventfd01 11 TCONF : Remaining cases not appropriate for
configuration
eventfd01 12 TCONF : Remaining cases not appropriate for

Quoted 8 lines

configuration
eventfd01 13 TCONF : Remaining cases not appropriate for
configuration
eventfd01 14 TCONF : Remaining cases not appropriate for
configuration
eventfd01 15 TCONF : Remaining cases not appropriate for
configuration
eventfd01 0 TWARN : tst_rmdir(): TESTDIR was NULL; no

removal

Quoted 29 lines

attempted
------------

My system's kernel level is 2.6.18-164.el5
Therefore this test rejected:

------< eventfd01.c - main() >------
if (tst_kvercmp(2, 6, 22) < 0)
tst_brkm(TCONF, cleanup, "2.6.22 or greater kernel
required");
------------

But, this "tst_brkm()" called "cleanup()".
"tst_rmdir()" is called in "cleanup()", and this checked "TESTDIR":

------< tst_tmpdir.c - tst_rmdir() >------
/*
* Check that TESTDIR is not NULL.
*/

  if ( TESTDIR == NULL ) {
     tst_resm(TWARN, "%s: TESTDIR was NULL; no removal attempted",
              FN_NAME);
     return;

}
------------

This TWARN caused FAIL.
"TESTDIR" is NULL because the test didn't start.

Quoted 7 lines

I think that "cleanup()" doesn't have to be called in this case.

============
--- a/testcases/kernel/syscalls/eventfd/eventfd01.c

2010-04-01

Quoted 2 lines

15:23:10.000000000 +0900
+++ b/testcases/kernel/syscalls/eventfd/eventfd01.c

2010-04-08

Quoted 14 lines

17:16:35.000000000 +0900

(quoted diff) +4 -2
@@ -728,8 +728,10 @@
       /* capture signals */
       tst_sig(FORK, DEF_HANDLER, cleanup);
 
-       if (tst_kvercmp(2, 6, 22) < 0)
-               tst_brkm(TCONF, cleanup, "2.6.22 or greater kernel
 required");
+       if (tst_kvercmp(2, 6, 22) < 0) {
+               tst_brkm(TCONF, NULL, "2.6.22 or greater kernel
 required");
+               tst_exit();
+       }
 
Quoted 7 lines
Quoted 3 lines
       /* Create a temporary directory & chdir there */
       tst_tmpdir();

============

Try tst_exit instead of NULL.
Cheers,
-Garrett

testcases/kernel/syscalls/eventfd/eventfd01.c +1 -1
@@ -729,7 +729,7 @@
 	tst_sig(FORK, DEF_HANDLER, cleanup);
 
 	if (tst_kvercmp(2, 6, 22) < 0)
-		tst_brkm(TCONF, cleanup, "2.6.22 or greater kernel required");
+		tst_brkm(TCONF, tst_exit, "2.6.22 or greater kernel required");
 
 	/* Create a temporary directory & chdir there */
 	tst_tmpdir();

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev

_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

#4 lore raw
Quoted 4 lines · Mitani

Sorry.
My patch was destroyed by e-mail.
I attach patch for "eventfd01.c" file.

Applied to next branch. Will wait for someone to Acked/test it before merging to master.

Thanks
-Rishi

Quoted 130 lines

Regards--

-Tomonori Mitani

Quoted 101 lines

-----Original Message-----
From: Garrett Cooper [mailto:[email protected]]
Sent: Friday, April 09, 2010 2:35 AM
To: Mitani
Cc: <[email protected]>
Subject: Re: [LTP] [PATCH] fix "eventfd01" test

Quoted 29 lines · Mitani

Hi,

I tried "eventfd01" test in my system.
This test failed with TWARN (return code:4) :

------------

 eventfd01    1  TCONF  :  2.6.22 or greater kernel required
 eventfd01    2  TCONF  :  Remaining cases not appropriate for

configuration
eventfd01 3 TCONF : Remaining cases not appropriate for
configuration
eventfd01 4 TCONF : Remaining cases not appropriate for
configuration
eventfd01 5 TCONF : Remaining cases not appropriate for
configuration
eventfd01 6 TCONF : Remaining cases not appropriate for
configuration
eventfd01 7 TCONF : Remaining cases not appropriate for
configuration
eventfd01 8 TCONF : Remaining cases not appropriate for
configuration
eventfd01 9 TCONF : Remaining cases not appropriate for
configuration
eventfd01 10 TCONF : Remaining cases not appropriate for
configuration
eventfd01 11 TCONF : Remaining cases not appropriate for
configuration
eventfd01 12 TCONF : Remaining cases not appropriate for

Quoted 8 lines

configuration
eventfd01 13 TCONF : Remaining cases not appropriate for
configuration
eventfd01 14 TCONF : Remaining cases not appropriate for
configuration
eventfd01 15 TCONF : Remaining cases not appropriate for
configuration
eventfd01 0 TWARN : tst_rmdir(): TESTDIR was NULL; no

removal

Quoted 29 lines

attempted
------------

My system's kernel level is 2.6.18-164.el5
Therefore this test rejected:

------< eventfd01.c - main() >------
if (tst_kvercmp(2, 6, 22) < 0)
tst_brkm(TCONF, cleanup, "2.6.22 or greater kernel
required");
------------

But, this "tst_brkm()" called "cleanup()".
"tst_rmdir()" is called in "cleanup()", and this checked "TESTDIR":

------< tst_tmpdir.c - tst_rmdir() >------
/*
* Check that TESTDIR is not NULL.
*/

  if ( TESTDIR == NULL ) {
     tst_resm(TWARN, "%s: TESTDIR was NULL; no removal attempted",
              FN_NAME);
     return;

}
------------

This TWARN caused FAIL.
"TESTDIR" is NULL because the test didn't start.

Quoted 7 lines

I think that "cleanup()" doesn't have to be called in this case.

============
--- a/testcases/kernel/syscalls/eventfd/eventfd01.c

2010-04-01

Quoted 2 lines

15:23:10.000000000 +0900
+++ b/testcases/kernel/syscalls/eventfd/eventfd01.c

2010-04-08

Quoted 14 lines

17:16:35.000000000 +0900

(quoted diff) +4 -2
@@ -728,8 +728,10 @@
       /* capture signals */
       tst_sig(FORK, DEF_HANDLER, cleanup);
 
-       if (tst_kvercmp(2, 6, 22) < 0)
-               tst_brkm(TCONF, cleanup, "2.6.22 or greater kernel
 required");
+       if (tst_kvercmp(2, 6, 22) < 0) {
+               tst_brkm(TCONF, NULL, "2.6.22 or greater kernel
 required");
+               tst_exit();
+       }
 
Quoted 7 lines
Quoted 3 lines
       /* Create a temporary directory & chdir there */
       tst_tmpdir();

============

Try tst_exit instead of NULL.
Cheers,
-Garrett

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev

_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Signature · 16 lines
Thanks & Regards
Rishi
LTP Maintainer
IBM, LTC, Bangalore
Please join IRC #ltp @ irc.freenode.net

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
#5 lore raw
Quoted 6 lines · Rishikesh K Rajak
Quoted 4 lines · Mitani

Sorry.
My patch was destroyed by e-mail.
I attach patch for "eventfd01.c" file.

Quoted 123 lines

Applied to next branch. Will wait for someone to Acked/test it before merging to master.

Thanks
-Rishi

Quoted 117 lines

Regards--

-Tomonori Mitani

Quoted 108 lines

-----Original Message-----
From: Garrett Cooper [mailto:[email protected]]
Sent: Friday, April 09, 2010 2:35 AM
To: Mitani
Cc: <[email protected]>
Subject: Re: [LTP] [PATCH] fix "eventfd01" test

Quoted 29 lines · Mitani

Hi,

I tried "eventfd01" test in my system.
This test failed with TWARN (return code:4) :

------------
 eventfd01    1  TCONF  :  2.6.22 or greater kernel required eventfd01    2  TCONF  :  Remaining cases not appropriate for configuration
 eventfd01    3  TCONF  :  Remaining cases not appropriate for configuration
 eventfd01    4  TCONF  :  Remaining cases not appropriate for configuration
 eventfd01    5  TCONF  :  Remaining cases not appropriate for configuration
 eventfd01    6  TCONF  :  Remaining cases not appropriate for configuration
 eventfd01    7  TCONF  :  Remaining cases not appropriate for configuration
 eventfd01    8  TCONF  :  Remaining cases not appropriate for configuration
 eventfd01    9  TCONF  :  Remaining cases not appropriate for configuration
 eventfd01   10  TCONF  :  Remaining cases not appropriate for configuration
 eventfd01   11  TCONF  :  Remaining cases not appropriate for configuration
 eventfd01   12  TCONF  :  Remaining cases not appropriate for

Quoted 8 lines

configuration
 eventfd01   13  TCONF  :  Remaining cases not appropriate for configuration
 eventfd01   14  TCONF  :  Remaining cases not appropriate for configuration
 eventfd01   15  TCONF  :  Remaining cases not appropriate for configuration
 eventfd01    0  TWARN  :  tst_rmdir(): TESTDIR was NULL; no

removal

Quoted 29 lines

attempted
------------

My system's kernel level is 2.6.18-164.el5
Therefore this test rejected:

------< eventfd01.c - main() >------
       if (tst_kvercmp(2, 6, 22) < 0)
               tst_brkm(TCONF, cleanup, "2.6.22 or greater kernel required");
------------

But, this "tst_brkm()" called "cleanup()".
"tst_rmdir()" is called in "cleanup()", and this checked "TESTDIR":

------< tst_tmpdir.c - tst_rmdir() >------
  /*
   * Check that TESTDIR is not NULL.
   */
  if ( TESTDIR == NULL ) {
     tst_resm(TWARN, "%s: TESTDIR was NULL; no removal attempted", FN_NAME);
     return;
  }
------------

This TWARN caused FAIL.
"TESTDIR" is NULL because the test didn't start.

Quoted 7 lines

I think that "cleanup()" doesn't have to be called in this case.

============
--- a/testcases/kernel/syscalls/eventfd/eventfd01.c

2010-04-01

Quoted 2 lines

15:23:10.000000000 +0900
+++ b/testcases/kernel/syscalls/eventfd/eventfd01.c

2010-04-08

Quoted 14 lines

17:16:35.000000000 +0900

(quoted diff) +4 -2
@@ -728,8 +728,10 @@
        /* capture signals */
        tst_sig(FORK, DEF_HANDLER, cleanup);
 
-       if (tst_kvercmp(2, 6, 22) < 0)
-               tst_brkm(TCONF, cleanup, "2.6.22 or greater kernel
 required");
+       if (tst_kvercmp(2, 6, 22) < 0) {
+               tst_brkm(TCONF, NULL, "2.6.22 or greater kernel
 required");
+               tst_exit();
+       }
 
Quoted 3 lines

       /* Create a temporary directory & chdir there */ tst_tmpdir();
============

Try tst_exit instead of NULL.
Cheers,
-Garrett

-Garrett

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list