/third_party/ltp/testcases/kernel/syscalls/request_key/ |
H A D | request_key03.c | 92 if (TST_RET < 0 && TST_ERR != EINVAL && TST_ERR != ENOKEY && in run_child_add() 93 TST_ERR != EDQUOT) { in run_child_add() 118 if (TST_RET < 0 && TST_ERR != ENOKEY && TST_ERR != ENOENT && in run_child_request() 119 TST_ERR != EDQUOT) { in run_child_request() 147 if (TST_RET < 0 && TST_ERR != EINVAL) { in do_test() 148 if (TST_ERR == ENODEV) { in do_test()
|
H A D | request_key04.c | 55 saved_errno = TST_ERR; in do_test() 64 TST_ERR = saved_errno; in do_test() 65 if (TST_ERR == EACCES) { in do_test()
|
/third_party/ltp/testcases/kernel/syscalls/prctl/ |
H A D | prctl02.c | 161 if (tc->exp_errno == TST_ERR) { in verify_prctl() 164 if (tc->option == PR_SET_SECCOMP && TST_ERR == EINVAL) in verify_prctl() 177 if (TST_ERR == EINVAL) in setup() 181 if (TST_ERR == EINVAL) in setup() 185 if (TST_ERR == EINVAL) in setup() 189 if (TST_ERR == EINVAL) in setup() 193 if (TST_ERR == EINVAL) in setup()
|
/third_party/ltp/testcases/kernel/syscalls/keyctl/ |
H A D | keyctl05.c | 94 if (TST_ERR == EINVAL && is_asymmetric && fips_enabled) { in test_update_nonupdatable() 98 if (TST_ERR == ENODEV) { in test_update_nonupdatable() 103 if (TST_ERR == EBADMSG && is_asymmetric) { in test_update_nonupdatable() 108 if (TST_ERR == ENOENT && is_asymmetric) { in test_update_nonupdatable() 138 if (TST_ERR != EOPNOTSUPP) { in test_update_nonupdatable() 182 if (TST_RET != 0 && TST_ERR != EACCES) { in test_update_setperm_race()
|
H A D | keyctl07.c | 43 if (TST_ERR != ENOKEY && TST_ERR != ENOENT) { in try_to_read_negative_key() 68 if (TST_ERR != ENOKEY) { in try_to_read_negative_key()
|
H A D | keyctl01.c | 33 if (TST_RET == -1 && TST_ERR == ENOKEY) in do_test() 43 if (TST_ERR != ENOKEY) { in do_test()
|
/third_party/ltp/testcases/kernel/syscalls/fchmodat/ |
H A D | fchmodat01.c | 53 TST_ERR, strerror(TST_ERR)); in verify_fchmodat() local 58 TST_ERR, strerror(TST_ERR)); in verify_fchmodat() local
|
/third_party/ltp/testcases/kernel/syscalls/fcntl/ |
H A D | fcntl39.c | 52 TST_ERR, strerror(TST_ERR)); in setup_dnotify() 58 TST_ERR, strerror(TST_ERR)); in setup_dnotify()
|
H A D | fcntl38.c | 46 TST_ERR, strerror(TST_ERR)); in setup_dnotify() 51 TST_ERR, strerror(TST_ERR)); in setup_dnotify()
|
/third_party/ltp/testcases/kernel/syscalls/add_key/ |
H A D | add_key02.c | 58 if (TST_ERR == EFAULT) { in verify_add_key() 64 if (TST_ERR == ENODEV) { in verify_add_key() 75 if (TST_ERR == EBADMSG && !strcmp(tcases[i].type, "asymmetric")) { in verify_add_key()
|
/third_party/ltp/testcases/kernel/syscalls/membarrier/ |
H A D | membarrier01.c | 316 failed_not_ok(tc[i], TST_RET, TST_ERR); in verify_membarrier() 328 if (tc[i].force_exp_errno == TST_ERR) in verify_membarrier() 331 failed_unexpec(tc[i], TST_RET, TST_ERR); in verify_membarrier() 350 if (tc[i].exp_errno == TST_ERR) in verify_membarrier() 353 failed_unexpec(tc[i], TST_RET, TST_ERR); in verify_membarrier() 357 failed_unexpec(tc[i], TST_RET, TST_ERR); in verify_membarrier()
|
/third_party/ltp/testcases/kernel/syscalls/quotactl/ |
H A D | quotactl03.c | 53 if (TST_ERR == EINVAL) in verify_quota() 57 if (TST_ERR != ENOENT) in verify_quota() 59 tst_strerrno(TST_ERR)); in verify_quota()
|
H A D | quotactl02.h | 40 if (TST_ERR == EINVAL || TST_ERR == ENOSYS) in check_support_cmd() 45 if (TST_ERR == EINVAL || TST_ERR == ENOSYS) in check_support_cmd()
|
/third_party/ltp/testcases/kernel/logging/kmsg/ |
H A D | kmsg01.c | 54 errno = TST_ERR; in inject_msg() 85 if (TST_ERR == EAGAIN) in find_msg() 88 else if (TST_ERR == EPIPE) in find_msg() 196 if (TST_RET == -1 && TST_ERR != EPIPE) { in timed_read_kmsg() 197 ret = TST_ERR; in timed_read_kmsg() 236 if (TST_RET == -1 && TST_ERR == EAGAIN) in test_read_nonblock() 356 if (TST_ERR == EPIPE) in test_read_returns_first_message() 422 if (TST_RET == -1 && TST_ERR == EPIPE) in test_messages_overwritten() 443 if (TST_RET == -1 && TST_ERR != EPIPE) in read_msg_seqno() 446 if (TST_ERR in read_msg_seqno() [all...] |
/third_party/ltp/testcases/kernel/syscalls/ptrace/ |
H A D | ptrace07.c | 130 if (TST_ERR == EIO) in do_test() 133 if (TST_ERR == EINVAL) in do_test() 136 if (TST_ERR == ENODEV) in do_test() 156 } else if (TST_ERR == EINVAL) { in do_test()
|
/third_party/ltp/testcases/kernel/syscalls/ioperm/ |
H A D | ioperm02.c | 65 if ((TST_RET == -1) && (TST_ERR == tcases[i].exp_errno)) { in verify_ioperm() 67 "errno: %d", tcases[i].desc, TST_ERR); in verify_ioperm() 72 TST_RET, TST_ERR, tcases[i].exp_errno); in verify_ioperm()
|
H A D | ioperm01.c | 35 TST_ERR, tst_strerrno(TST_ERR)); in verify_ioperm()
|
/third_party/ltp/testcases/kernel/syscalls/dup2/ |
H A D | dup205.c | 61 if (TST_ERR != EBADF && TST_ERR != EMFILE && TST_ERR != EINVAL) { in run()
|
/third_party/ltp/testcases/kernel/syscalls/fchmod/ |
H A D | fchmod06.c | 47 if (TST_ERR == tcases[i].exp_errno) { in verify_fchmod() 54 TST_ERR, tst_strerrno(TST_ERR)); in verify_fchmod()
|
/third_party/ltp/include/ |
H A D | tst_test_macros.h | 14 TST_ERR = errno; \ 21 TST_ERR = errno; \ 25 extern int TST_ERR; 34 TST_ERR = errno; \ 206 if (TST_ERR == (ERRNO)) { \
|
/third_party/ltp/testcases/kernel/syscalls/clock_getres/ |
H A D | clock_getres01.c | 72 if (TST_ERR == EINVAL) { in do_test() 81 if (TST_ERR != tcase[i].err) { in do_test() 84 tcase[i].name, tst_strerrno(TST_ERR), tst_strerrno(tcase[i].err)); in do_test()
|
/third_party/ltp/testcases/kernel/syscalls/fsconfig/ |
H A D | fsconfig01.c | 39 if (TST_ERR == EOPNOTSUPP) in run() 47 if (TST_ERR == EOPNOTSUPP) in run() 55 if (TST_ERR == EOPNOTSUPP) in run()
|
/third_party/ltp/testcases/network/lib6/ |
H A D | in6_02.c | 89 if (TST_ERR != ENXIO) { in sub_if_indextoname_test() 92 if_index, TST_RET, TST_ERR); in sub_if_indextoname_test() 169 TST_ERR, strerror(TST_ERR)); in if_nameindex_test()
|
/third_party/ltp/testcases/kernel/syscalls/iopl/ |
H A D | iopl01.c | 37 TST_ERR, tst_strerrno(TST_ERR)); in verify_iopl()
|
/third_party/ltp/testcases/kernel/syscalls/ioprio/ |
H A D | ioprio_set03.c | 38 TST_ERR); in run() 54 TST_ERR); in run()
|