get_mempolicy01: fix for changing failure due to configuration error
PATCH 1/1 get_mempolicy01: fix for changing failure due to configuration error
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
testcases/kernel/syscalls/get_mempolicy/get_mempolicy01.c +2 -2
@@ -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 ();
------------------------------------------------------------------------------
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
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
Hi Muni,
Quoted 53 lines · Munipradeep Beerakam
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
Munidifferences
between files
attachment
(get_mempolicy01.patch)---
a/testcases/kernel/syscalls/get_mempolicy/get_mempolicy01.c2009-06-10 07:08:08.000000000 -0400
+++b/testcases/kernel/syscalls/get_mempolicy/get_mempolicy01.c2009-06-10 07:12:16.000000000 -0400(quoted diff) +1
-1@@ -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();(quoted diff) +1
-1@@ -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));
Quoted 3 lines
result = 1;
cleanup();
tst_exit();The problem reported on your machine is function not implemented. However, if you change the FAIL to blindly CONF, that will cause issues like actual failures reported wrongly.
See, whether you can find out ways to isolate only function not implemented part.
Regards--
Subrata
------------------------------------------------------------------------------
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
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
On Thu, 2009-06-18 at 23:01 +0530, Subrata Modak wrote:
Hi Subrata,
Quoted 64 lines
Hi Muni,
Quoted 53 lines · Munipradeep Beerakam
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
Munidifferences
between files
attachment
(get_mempolicy01.patch)---
a/testcases/kernel/syscalls/get_mempolicy/get_mempolicy01.c2009-06-10 07:08:08.000000000 -0400
+++b/testcases/kernel/syscalls/get_mempolicy/get_mempolicy01.c2009-06-10 07:12:16.000000000 -0400(quoted diff) +1
-1@@ -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();(quoted diff) +1
-1@@ -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));Quoted 3 lines
result = 1; cleanup(); tst_exit();The problem reported on your machine is function not implemented. However, if you change the FAIL to blindly CONF, that will cause issues like actual failures reported wrongly.
Quoted 7 lines
See, whether you can find out ways to isolate only function not implemented part.
Regards--
Subrata
As I don't know what are all the error reporting options LTP have, I changed it to CONF. We can change it accordingly to need. Can we report it as BROKEN, as set_mempolicy is preventing the get_mempolicy test to run?
Regards
Muni
------------------------------------------------------------------------------
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
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
Quoted 6 lines
Quoted 2 lines
As I don't know what are all the error reporting options LTP have, I changed it to CONF. We can change it accordingly to need. Can we report it as BROKEN, as
set_mempolicyis preventing theget_mempolicytest to run?
Muni,
Jiriś patch checked in today should fix this:
Subject: [LTP] [PATCH] Define some syscall numbers in the linux_syscall_numbers.h file, not to get build failures or crappy results on other architectures which lack them
Regards--
Subrata
Quoted 4 lines
Regards
Muni
------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference! Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250. Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
Quoted 7 lines · On Tuesday 23 June 2009 16:50:42 Subrata Modak wrote:
Quoted 6 lines
Quoted 2 lines
As I don't know what are all the error reporting options LTP have, I changed it to CONF. We can change it accordingly to need. Can we report it as BROKEN, as
set_mempolicyis preventing theget_mempolicytest to run?
Quoted 7 lines
Muni,
Jiriś patch checked in today should fix this:
Subject: [LTP] [PATCH] Define some syscall numbers in the
linux_syscall_numbers.hfile, not to get build failures or crappy results on other architectures which lack them
Well, yes and no. The patch does handle the situation (sort of), but it still results in a TBROK (which is wrong, I admit). I think this area (ie. syscalls which are or aren't present in some kernels) should be handled more systematically, especially after what I went through uploading the last version of ltp to Debian. I will think of it and produce some example patches after I send other patches I have in the queue.
Regards
Jiri Palecek
------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference! Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250. Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
Quoted 8 lines · Jiri Palecek
Quoted 7 lines · On Tuesday 23 June 2009 16:50:42 Subrata Modak wrote:
Quoted 6 lines
Quoted 2 lines
As I don't know what are all the error reporting options LTP have, I changed it to CONF. We can change it accordingly to need. Can we report it as BROKEN, as
set_mempolicyis preventing theget_mempolicytest to run?
Quoted 8 lines
Quoted 7 lines
Muni,
Jiriś patch checked in today should fix this:
Subject: [LTP] [PATCH] Define some syscall numbers in the
linux_syscall_numbers.hfile, not to get build failures or crappy results on other architectures which lack them
Updating/cleaning linux_syscall_numbers.h is a good idea always.
Regards--
Subrata
Quoted 4 lines
Well, yes and no. The patch does handle the situation (sort of), but it still results in a TBROK (which is wrong, I admit). I think this area (ie. syscalls which are or aren't present in some kernels) should be handled more systematically, especially after what I went through uploading the last version of ltp to Debian. I will think of it and produce some example patches after I send other patches I have in the queue.
Regards
Jiri Palecek
------------------------------------------------------------------------------
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list