Home
last modified time | relevance | path

Searched refs:exp_errno (Results 1 – 25 of 108) sorted by relevance

12345

/external/ltp/testcases/kernel/syscalls/setns/
Dsetns01.c50 int exp_errno; member
71 .exp_errno = EBADF,
77 .exp_errno = EINVAL,
85 .exp_errno = EINVAL,
91 .exp_errno = EINVAL,
97 .exp_errno = EPERM,
171 if (ret == -1 && errno == t->exp_errno) in test_setns()
173 t->exp_errno); in test_setns()
176 t->msg, t->exp_errno); in test_setns()
/external/ltp/testcases/kernel/syscalls/writev/
Dwritev01.c50 int exp_errno; member
58 .exp_errno = EINVAL
66 .exp_errno = EBADF
74 .exp_errno = EINVAL
96 .exp_errno = EPIPE,
123 ret &= (TST_ERR == tcase->exp_errno); in test_writev()
126 tcase->exp_ret, tst_strerrno(tcase->exp_errno), in test_writev()
/external/ltp/testcases/kernel/syscalls/mkdir/
Dmkdir03.c39 int exp_errno; member
57 TST_RET, tc->exp_errno); in verify_mkdir()
61 if (TST_ERR == tc->exp_errno) { in verify_mkdir()
66 tc->exp_errno, strerror(tc->exp_errno)); in verify_mkdir()
78 if (TC[i].exp_errno == EFAULT) in setup()
/external/ltp/testcases/kernel/syscalls/fchownat/
Dfchownat01.c53 int exp_errno; member
114 TEST_RETURN, test->exp_ret, test->exp_errno); in fchownat_verify()
118 if (TEST_ERRNO == test->exp_errno) { in fchownat_verify()
121 test->exp_ret, strerror(test->exp_errno)); in fchownat_verify()
125 test->exp_errno, strerror(test->exp_errno)); in fchownat_verify()
/external/ltp/testcases/kernel/syscalls/tee/
Dtee02.c38 int exp_errno; member
61 tc->exp_errno); in tee_verify()
65 if (TST_ERR != tc->exp_errno) { in tee_verify()
68 tc->exp_errno, tst_strerrno(tc->exp_errno)); in tee_verify()
/external/ltp/testcases/kernel/syscalls/vmsplice/
Dvmsplice02.c46 int exp_errno; member
77 tc->exp_errno); in vmsplice_verify()
81 if (TST_ERR != tc->exp_errno) { in vmsplice_verify()
84 tc->exp_errno, tst_strerrno(tc->exp_errno)); in vmsplice_verify()
/external/ltp/testcases/kernel/syscalls/stat/
Dstat03.c33 int exp_errno; member
54 if (TST_ERR == tc->exp_errno) { in verify_stat()
59 tc->exp_errno, tst_strerrno(tc->exp_errno)); in verify_stat()
75 if (TC[i].exp_errno == EFAULT) in setup()
/external/ltp/testcases/kernel/syscalls/renameat2/
Drenameat201.c62 int exp_errno; member
148 if (test->exp_errno && TEST_RETURN != -1) { in renameat2_verify()
153 if (test->exp_errno == 0 && TEST_RETURN != 0) { in renameat2_verify()
158 if (test->exp_errno == TEST_ERRNO) { in renameat2_verify()
166 test->exp_errno, tst_strerrno(test->exp_errno)); in renameat2_verify()
/external/ltp/testcases/kernel/syscalls/utimes/
Dutimes01.c46 int exp_errno; member
72 if (tc->exp_errno == 0) { in utimes_verify()
83 if (TST_ERR == tc->exp_errno) { in utimes_verify()
88 tc->exp_errno, tst_strerrno(tc->exp_errno)); in utimes_verify()
/external/ltp/testcases/kernel/syscalls/splice/
Dsplice03.c54 int exp_errno; member
88 TST_RET, tst_strerrno(tc->exp_errno)); in splice_verify()
92 if (TST_ERR != tc->exp_errno) { in splice_verify()
95 tc->exp_errno, tst_strerrno(tc->exp_errno)); in splice_verify()
/external/ltp/testcases/kernel/syscalls/lchown/
Dlchown03.c54 int exp_errno; member
125 TEST_RETURN, test->exp_errno); in lchown_verify()
129 if (TEST_ERRNO == test->exp_errno) { in lchown_verify()
134 test->exp_errno, in lchown_verify()
135 strerror(test->exp_errno)); in lchown_verify()
/external/ltp/testcases/kernel/syscalls/readlink/
Dreadlink03.c53 int exp_errno; member
75 if (TST_ERR != tc->exp_errno) { in verify_readlink()
78 tc->exp_errno, tst_strerrno(tc->exp_errno)); in verify_readlink()
80 if (tc->exp_errno == ENOENT && TST_ERR == EINVAL) { in verify_readlink()
/external/ltp/testcases/kernel/syscalls/setdomainname/
Dsetdomainname02.c10 #define ERRNO_DESC(x) .exp_errno = x, .errno_desc = #x
18 int exp_errno; member
38 if (TST_ERR != tcase->exp_errno) { in verify_setdomainname()
40 TST_ERR, tcase->exp_errno); in verify_setdomainname()
/external/ltp/testcases/kernel/syscalls/membarrier/
Dmembarrier01.c34 int exp_errno; /* expected errno for given cmd failure */ member
53 .exp_errno = EINVAL,
66 .exp_errno = EINVAL,
94 .exp_errno = EPERM,
141 .exp_errno = EPERM,
223 _test.testname, _test.exp_ret, _test.exp_errno, \
248 _test.exp_errno, _test.force); \
350 if (tc[i].exp_errno == TST_ERR) in verify_membarrier()
/external/ltp/testcases/kernel/syscalls/sched_setaffinity/
Dsched_setaffinity01.c40 int exp_errno; member
59 if (tc->exp_errno == EPERM) { in verify_test()
78 if (TST_ERR != tc->exp_errno) { in verify_test()
81 tst_strerrno(tc->exp_errno)); in verify_test()
86 if (tc->exp_errno == EPERM) in verify_test()
/external/ltp/testcases/kernel/syscalls/ioperm/
Dioperm02.c104 int exp_errno; /* expected error number */ member
138 (TEST_ERRNO == test_cases[i].exp_errno)) { in main()
148 TEST_ERRNO, test_cases[i].exp_errno); in main()
208 test_cases[0].exp_errno = EINVAL; in setup()
212 test_cases[1].exp_errno = EPERM; in setup()
/external/ltp/testcases/kernel/syscalls/io_submit/
Dio_submit01.c48 int exp_errno; member
110 if (ret == t->exp_errno) { in verify_io_submit()
112 t->desc, errno_name(t->exp_errno)); in verify_io_submit()
118 errno_name(t->exp_errno), t->exp_errno); in verify_io_submit()
/external/ltp/testcases/kernel/syscalls/timerfd/
Dtimerfd_create01.c37 int exp_errno; member
86 if (TEST_ERRNO == test->exp_errno) { in timerfd_create_verify()
92 "%d - %s", test->exp_errno, strerror(test->exp_errno)); in timerfd_create_verify()
/external/ltp/testcases/kernel/syscalls/mq_notify/
Dmq_notify02.c35 int exp_errno; member
78 if (TEST_ERRNO == test->exp_errno) { in mq_notify_verify()
83 test->exp_errno, strerror(test->exp_errno)); in mq_notify_verify()
/external/ltp/testcases/kernel/syscalls/renameat/
Drenameat01.c93 int exp_errno; member
199 if (tc->exp_errno == EMLINK && max_subdirs == 0) { in renameat_verify()
207 if (tc->exp_errno && TEST_RETURN != -1) { in renameat_verify()
212 if (tc->exp_errno == 0 && TEST_RETURN != 0) { in renameat_verify()
217 if (TEST_ERRNO == tc->exp_errno) { in renameat_verify()
223 "%d - %s", tc->exp_errno, in renameat_verify()
224 strerror(tc->exp_errno)); in renameat_verify()
/external/ltp/testcases/kernel/syscalls/mkdirat/
Dmkdirat02.c28 int exp_errno; member
65 if (TST_ERR == test->exp_errno) { in mkdirat_verify()
72 test->exp_errno, tst_strerrno(test->exp_errno)); in mkdirat_verify()
/external/ltp/testcases/kernel/syscalls/link/
Dlink08.c38 int exp_errno; member
58 if (TST_ERR == tc->exp_errno) { in link_verify()
65 tc->exp_errno, tst_strerrno(tc->exp_errno)); in link_verify()
/external/ltp/testcases/kernel/syscalls/dup3/
Ddup3_02.c53 int exp_errno; member
84 if (TEST_ERRNO == test_cases[i].exp_errno) { in main()
90 "%d - %s", test_cases[i].exp_errno, in main()
91 strerror(test_cases[i].exp_errno)); in main()
/external/ltp/testcases/kernel/syscalls/sched_getattr/
Dsched_getattr02.c52 int exp_errno; member
75 if (TEST_ERRNO == test->exp_errno) { in sched_getattr_verify()
83 test->exp_errno, tst_strerrno(test->exp_errno)); in sched_getattr_verify()
/external/ltp/testcases/kernel/syscalls/sigaltstack/
Dsigaltstack02.c96 int exp_errno; member
135 Test_cases[ind].exp_errno) { in main()
145 [ind].exp_errno); in main()
150 Test_cases[ind].exp_errno); in main()

12345