Home
last modified time | relevance | path

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

123456

/third_party/ltp/testcases/kernel/syscalls/setns/
Dsetns01.c28 int exp_errno; member
79 .exp_errno = EBADF,
85 .exp_errno = EINVAL,
92 .exp_errno = EINVAL,
98 .exp_errno = EINVAL,
104 .exp_errno = EPERM,
127 if (ret == -1 && errno == t->exp_errno) { in test_setns()
129 t->msg, t->exp_errno, in test_setns()
130 tst_strerrno(t->exp_errno)); in test_setns()
133 t->msg, t->exp_errno, in test_setns()
[all …]
/third_party/ltp/testcases/kernel/syscalls/finit_module/
Dfinit_module02.c40 int exp_errno; member
48 tc->exp_errno = ENOEXEC; in bad_fd_setup()
50 tc->exp_errno = EBADF; in bad_fd_setup()
56 tc->exp_errno = EISDIR; in dir_setup()
58 tc->exp_errno = EINVAL; in dir_setup()
118 if (tc->exp_errno == EEXIST) in run()
121 TST_EXP_FAIL(finit_module(*tc->fd, tc->param, tc->flags), tc->exp_errno, in run()
124 if (tc->exp_errno == EEXIST) in run()
/third_party/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()
/third_party/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()
/third_party/ltp/testcases/kernel/syscalls/recvmmsg/
Drecvmmsg01.c34 int exp_errno; member
43 .exp_errno = EBADF,
49 .exp_errno = EFAULT,
57 .exp_errno = EINVAL,
65 .exp_errno = EINVAL,
71 .exp_errno = EFAULT,
93 tc->exp_errno, "recvmmsg() %s", tc->desc); in do_test()
/third_party/ltp/testcases/kernel/syscalls/fchownat/
Dfchownat01.c52 int exp_errno; member
113 TEST_RETURN, test->exp_ret, test->exp_errno); in fchownat_verify()
117 if (TEST_ERRNO == test->exp_errno) { in fchownat_verify()
120 test->exp_ret, strerror(test->exp_errno)); in fchownat_verify()
124 test->exp_errno, strerror(test->exp_errno)); in fchownat_verify()
/third_party/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()
/third_party/ltp/testcases/kernel/syscalls/vmsplice/
Dvmsplice02.c44 int exp_errno; member
70 tc->exp_errno); in vmsplice_verify()
74 if (TST_ERR != tc->exp_errno) { in vmsplice_verify()
77 tc->exp_errno, tst_strerrno(tc->exp_errno)); in vmsplice_verify()
/third_party/ltp/testcases/kernel/syscalls/timerfd/
Dtimerfd_gettime01.c29 int exp_errno; member
75 if (test->exp_errno == EFAULT) in run()
87 if (TST_ERR == test->exp_errno) { in run()
93 "%d - %s", test->exp_errno, strerror(test->exp_errno)); in run()
Dtimerfd_settime01.c29 int exp_errno; member
81 if (test->exp_errno == EFAULT) in run()
94 if (TST_ERR == test->exp_errno) { in run()
100 "%d - %s", test->exp_errno, strerror(test->exp_errno)); in run()
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()
/third_party/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()
/third_party/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()
/third_party/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()
/third_party/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()
/third_party/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()
/third_party/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()
/third_party/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()
/third_party/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()
/third_party/ltp/testcases/kernel/syscalls/sysfs/
Dsysfs05.c21 int exp_errno; member
36 tc->exp_errno, "%s", tc->err_desc); in verify_sysfs05()
39 tc->exp_errno, "%s", tc->err_desc); in verify_sysfs05()
51 if (tcases[i].exp_errno == EFAULT) in setup()
/third_party/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()
/third_party/ltp/testcases/kernel/syscalls/renameat/
Drenameat01.c92 int exp_errno; member
198 if (tc->exp_errno == EMLINK && max_subdirs == 0) { in renameat_verify()
206 if (tc->exp_errno && TEST_RETURN != -1) { in renameat_verify()
211 if (tc->exp_errno == 0 && TEST_RETURN != 0) { in renameat_verify()
216 if (TEST_ERRNO == tc->exp_errno) { in renameat_verify()
222 "%d - %s", tc->exp_errno, in renameat_verify()
223 strerror(tc->exp_errno)); in renameat_verify()
/third_party/ltp/testcases/kernel/syscalls/ptrace/
Dptrace03.c28 int exp_errno; member
47 if (tc->exp_errno == EPERM) in verify_ptrace()
55 if (tc->exp_errno == TST_ERR) in verify_ptrace()
59 tst_strerrno(tc->exp_errno)); in verify_ptrace()
/third_party/ltp/testcases/kernel/syscalls/mq_notify/
Dmq_notify02.c35 int exp_errno; member
78 if (TEST_ERRNO == test->exp_errno) { in mq_notify_verify()
85 test->exp_errno, strerror(test->exp_errno)); in mq_notify_verify()
/third_party/ltp/testcases/kernel/syscalls/sendmmsg/
Dsendmmsg02.c24 int exp_errno; member
33 .exp_errno = EBADF,
39 .exp_errno = EFAULT,
49 tc->exp_errno, "sendmmsg() %s", tc->desc); in do_test()

123456