/third_party/ltp/testcases/kernel/syscalls/setns/ |
D | setns01.c | 28 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/ |
D | finit_module02.c | 40 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/ |
D | writev01.c | 50 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/ |
D | mkdir03.c | 39 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/ |
D | recvmmsg01.c | 34 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/ |
D | fchownat01.c | 52 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/ |
D | tee02.c | 38 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/ |
D | vmsplice02.c | 44 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/ |
D | timerfd_gettime01.c | 29 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()
|
D | timerfd_settime01.c | 29 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()
|
D | timerfd_create01.c | 37 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/ |
D | stat03.c | 33 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/ |
D | renameat201.c | 62 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/ |
D | utimes01.c | 46 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/ |
D | splice03.c | 54 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/ |
D | lchown03.c | 54 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/ |
D | readlink03.c | 53 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/ |
D | membarrier01.c | 34 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/ |
D | setdomainname02.c | 10 #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/ |
D | sysfs05.c | 21 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/ |
D | sched_setaffinity01.c | 40 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/ |
D | renameat01.c | 92 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/ |
D | ptrace03.c | 28 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/ |
D | mq_notify02.c | 35 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/ |
D | sendmmsg02.c | 24 int exp_errno; member 33 .exp_errno = EBADF, 39 .exp_errno = EFAULT, 49 tc->exp_errno, "sendmmsg() %s", tc->desc); in do_test()
|