ltp-keyctl
PATCH 1/1 ltp-keyctl
Hi,
I have noticed fail and fixed.
1. keyctl01.c
Please find the patch below and as attachment.
Best regards
Naresh Kamboju
diff -Naurb a/testcases/kernel/syscalls/keyctl/keyctl01.c b/testcases/kernel/syscalls/keyctl/keyctl01.c
--- a/testcases/kernel/syscalls/keyctl/keyctl01.c 2009-05-21
23:47:32.000000000 +0530
+++ b/testcases/kernel/syscalls/keyctl/keyctl01.c 2009-06-17
23:51:46.000000000 +0530
@@ -123,7 +123,7 @@
for (lc = 0; TEST_LOOPING(lc); ++lc) {
Tst_count = 0;
for (testno = 0; testno < TST_TOTAL; ++testno) {- TEST(syscall(258, KEYCTL_GET_KEYRING_ID,KEY_SPEC_USER_SESSION_KEYRING)); //call keyctl() and Ask for a
keyring's ID
+ TEST(syscall(__NR_keyctl, KEYCTL_GET_KEYRING_ID,KEY_SPEC_USER_SESSION_KEYRING)); //call keyctl() and Ask for a
keyring's ID
if(TEST_RETURN != -1) {
tst_resm(TPASS,"KEYCTL_GET_KEYRING_ID succeed");
/* cleanup(); */
@@ -135,7 +135,7 @@
}- TEST(syscall(288, KEYCTL_REVOKE, "MyKey")); //call keyctl()
+ TEST(syscall(__NR_keyctl, KEYCTL_REVOKE, "MyKey")); //call keyctl()
if(TEST_RETURN != -1) {
tst_resm(TFAIL,"KEYTL_REVOKE succeededs, but
should fail");
cleanup();testcases/kernel/syscalls/keyctl/keyctl01.c +2 -2
@@ -123,7 +123,7 @@for (lc =0 ;TEST_LOOPING (lc); ++lc) { Tst_count =0 ;for (testno =0 ; testno <TST_TOTAL ; ++testno) { -TEST (syscall (258 ,KEYCTL_GET_KEYRING_ID ,KEY_SPEC_USER_SESSION_KEYRING ));//call keyctl() and Ask for a keyring's ID +TEST (syscall (__NR_keyctl,KEYCTL_GET_KEYRING_ID ,KEY_SPEC_USER_SESSION_KEYRING ));//call keyctl() and Ask for a keyring's ID if (TEST_RETURN !=-1 ) {tst_resm (TPASS ,"KEYCTL_GET_KEYRING_ID succeed" );/* cleanup(); */
@@ -135,7 +135,7 @@ } -TEST (syscall (288 ,KEYCTL_REVOKE ,"MyKey" ));//call keyctl() +TEST (syscall (__NR_keyctl,KEYCTL_REVOKE ,"MyKey" ));//call keyctl() if (TEST_RETURN !=-1 ) {tst_resm (TFAIL ,"KEYTL_REVOKE succeededs, but should fail" );cleanup ();
------------------------------------------------------------------------------
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