public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [Patch v2 1/4] KSM test case fixes - ksm01
@ 2011-09-06 12:17 Nageswara R Sastry
       [not found] ` <4E66135F.9050001@redhat.com>
  0 siblings, 1 reply; 2+ messages in thread
From: Nageswara R Sastry @ 2011-09-06 12:17 UTC (permalink / raw)
  To: ltp-list

[-- Attachment #1: Type: text/plain, Size: 533 bytes --]

Thanks Casper. Used macro 'PATH_KSM' and removed braces. And tested the 
same.

ksm01, ksm01_1:
Before patch:
...
ksm01       0  TINFO  :  KSM merging...
ksm01       1  TBROK  :  open: errno=ENOENT(2): No such file or directory
ksm01       2  TBROK  :  Remaining cases broken
...

After patch:
...
ksm01       1  TCONF  :  KSM configuration is not enabled
ksm01       2  TCONF  :  Remaining cases not appropriate for configuration
...

Signed-off-by: Nageswara R Sastry <rnsastry@linux.vnet.ibm.com>

-- 
Regards
R.Nageswara Sastry


[-- Attachment #2: ksm01.patch --]
[-- Type: text/plain, Size: 395 bytes --]

--- ltp.orig/testcases/kernel/mem/ksm/ksm01.c	2011-09-05 08:42:12.000000000 +0200
+++ ltp/testcases/kernel/mem/ksm/ksm01.c	2011-09-06 13:48:56.000000000 +0200
@@ -109,6 +109,8 @@ void setup(void)
 
 	tst_sig(FORK, DEF_HANDLER, NULL);
 	TEST_PAUSE;
+        if( access( PATH_KSM, F_OK ) == -1 )
+                tst_brkm(TCONF, NULL, "KSM configuration is not enabled");
 }
 
 void cleanup(void)

[-- Attachment #3: Type: text/plain, Size: 357 bytes --]

------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-09-07 13:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-06 12:17 [LTP] [Patch v2 1/4] KSM test case fixes - ksm01 Nageswara R Sastry
     [not found] ` <4E66135F.9050001@redhat.com>
2011-09-07 13:07   ` Cyril Hrubis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox