Simple bug in logic that defines when to run the test makes it run
exclusively when support is NOT implemented.

Tested on mips64 system running Cavium Networks Octeon chip, Linux
2.6.27

The fix:
------------------------------------------------------------------------
--------------------------------------

--- ./testcases/kernel/syscalls/getcpu/getcpu01.c.orig  2008-10-06
10:52:19.000000000 -0700
+++ ./testcases/kernel/syscalls/getcpu/getcpu01.c       2008-10-06
10:58:15.000000000 -0700
@@ -99,7 +99,7 @@
        #endif
 
        /* Check For Kernel Version */
-       if(((tst_kvercmp(2,6,20)) < 0) || (sys_support))
+       if(((tst_kvercmp(2,6,20)) < 0) || !(sys_support))
           {
              tst_resm(TCONF, "This test can only run on kernels that
are ");
              tst_resm(TCONF, "2.6.20 and higher and glibc version 2.6
and above");

-------------------------------------------------------------------------
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