public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH]get_mempolicy01: fix for changing failure due to configuration error
@ 2009-06-10  7:14 Munipradeep Beerakam
  2009-06-18 17:31 ` Subrata Modak
  0 siblings, 1 reply; 6+ messages in thread
From: Munipradeep Beerakam @ 2009-06-10  7:14 UTC (permalink / raw)
  To: ltp-list

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

Hi,

Here is the attachment to fix the configuration error in
get_mempolicy01.c
Actually it should not fail due to configuration error. So changed the
necessary.

Thanks
Muni

[-- Attachment #2: get_mempolicy01.patch --]
[-- Type: text/x-patch, Size: 1079 bytes --]

--- a/testcases/kernel/syscalls/get_mempolicy/get_mempolicy01.c	2009-06-10 07:08:08.000000000 -0400
+++ b/testcases/kernel/syscalls/get_mempolicy/get_mempolicy01.c	2009-06-10 07:12:16.000000000 -0400
@@ -296,7 +296,7 @@
                         TEST(rc = syscall(__NR_set_mempolicy, tc->policy,&nodemask, maxnode));
 
 		if (TEST_RETURN < 0) {
-			tst_resm(TFAIL, "set_mempolicy() failed - errno = %d : %s",TEST_ERRNO, strerror(TEST_ERRNO));
+			tst_resm(TCONF, "set_mempolicy() failed - errno = %d : %s",TEST_ERRNO, strerror(TEST_ERRNO));
                         result = 1;
 			cleanup();
                         tst_exit();
@@ -307,7 +307,7 @@
                 // mmap memory
                 p = mmap(NULL, len, PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS, 0, 0);
                 if (p == (void*)-1) {
-			tst_resm(TFAIL, "malloc failed - errno = %d : %s",TEST_ERRNO, strerror(TEST_ERRNO));
+			tst_resm(TCONF, "malloc failed - errno = %d : %s",TEST_ERRNO, strerror(TEST_ERRNO));
                         result = 1;
 			cleanup();
                         tst_exit();

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

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects

[-- 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] 6+ messages in thread

end of thread, other threads:[~2009-06-25  9:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-10  7:14 [LTP] [PATCH]get_mempolicy01: fix for changing failure due to configuration error Munipradeep Beerakam
2009-06-18 17:31 ` Subrata Modak
2009-06-19  8:55   ` Munipradeep Beerakam
2009-06-23 14:50     ` Subrata Modak
2009-06-23 16:06       ` Jiri Palecek
2009-06-25  9:10         ` Subrata Modak

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