--- testcases/kernel/syscalls/capset.orig/capset01.c 2010-01-06 13:29:07.000000000 +0530 +++ testcases/kernel/syscalls/capset/capset01.c 2010-01-06 13:50:12.000000000 +0530 @@ -89,6 +89,7 @@ static void cleanup(); char *TCID = "capset01"; /* Test program identifier. */ int TST_TOTAL = 1; /* Total number of test cases. */ extern int Tst_count; /* Test Case counter for tst_* routines */ +static int exp_enos[] = { EFAULT, EINVAL, EPERM, 0 }; static struct __user_cap_header_struct header; /* cap_user_header_t is a pointer to __user_cap_header_struct */ @@ -143,6 +144,9 @@ void setup() /* capture signals */ tst_sig(NOFORK, DEF_HANDLER, cleanup); + /* Set up the expected error numbers for -e option */ + TEST_EXP_ENOS(exp_enos); + /* Pause if that option was specified */ TEST_PAUSE;