/third_party/ltp/testcases/kernel/syscalls/request_key/ |
D | request_key03.c | 57 if (TST_RET < 0 && TST_ERR != EINVAL) { in test_with_key_type() 58 if (TST_ERR == ENODEV) { in test_with_key_type() 94 if (TST_RET < 0 && TST_ERR != EINVAL && in test_with_key_type() 95 TST_ERR != ENOKEY && TST_ERR != EDQUOT) { in test_with_key_type() 114 if (TST_RET < 0 && TST_ERR != ENOKEY && in test_with_key_type() 115 TST_ERR != ENOENT && TST_ERR != EDQUOT) { in test_with_key_type()
|
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/ |
D | prctl02.c | 150 if (tc->exp_errno == TST_ERR) { in verify_prctl() 153 if (tc->option == PR_SET_SECCOMP && TST_ERR == EINVAL) in verify_prctl() 166 if (TST_ERR == EINVAL) in setup() 170 if (TST_ERR == EINVAL) in setup() 174 if (TST_ERR == EINVAL) in setup() 178 if (TST_ERR == EINVAL) in setup() 182 if (TST_ERR == EINVAL) in setup()
|
/third_party/ltp/testcases/kernel/syscalls/keyctl/ |
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()
|
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()
|
/third_party/ltp/testcases/kernel/syscalls/open/ |
D | open08.c | 81 if (TST_ERR == tcases[i].error) { in verify_open() 83 "errno = %d : %s", TST_ERR, in verify_open() 84 strerror(TST_ERR)); in verify_open() 87 "expected %d", TST_ERR, in verify_open() 88 strerror(TST_ERR), tcases[i].error); in verify_open()
|
/third_party/ltp/testcases/kernel/logging/kmsg/ |
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 == EPIPE) in read_msg_seqno()
|
/third_party/ltp/testcases/kernel/syscalls/fcntl/ |
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/getrlimit/ |
D | getrlimit02.c | 40 if ((TST_RET == -1) && (TST_ERR == tc->exp_errno)) { in verify_getrlimit() 46 TST_ERR, strerror(TST_ERR)); in verify_getrlimit()
|
/third_party/ltp/testcases/kernel/syscalls/ptrace/ |
D | ptrace07.c | 111 if (TST_ERR == EIO) in do_test() 114 if (TST_ERR == EINVAL) in do_test() 117 if (TST_ERR == ENODEV) in do_test() 137 } else if (TST_ERR == EINVAL) { in do_test()
|
/third_party/ltp/testcases/kernel/syscalls/membarrier/ |
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/include/ |
D | tst_test_macros.h | 13 TST_ERR = errno; \ 20 TST_ERR = errno; \ 24 extern int TST_ERR; 33 TST_ERR = errno; \ 183 if (TST_ERR == (ERRNO)) { \
|
/third_party/ltp/testcases/kernel/syscalls/add_key/ |
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/quotactl/ |
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()
|
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/syscalls/ioperm/ |
D | ioperm02.c | 76 if ((TST_RET == -1) && (TST_ERR == tcases[i].exp_errno)) { in verify_ioperm() 78 "errno: %d", tcases[i].desc, TST_ERR); in verify_ioperm() 83 TST_RET, TST_ERR, tcases[i].exp_errno); in verify_ioperm()
|
/third_party/ltp/testcases/kernel/syscalls/fchmod/ |
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/testcases/kernel/syscalls/dup2/ |
D | dup205.c | 61 if (TST_ERR != EBADF && TST_ERR != EMFILE && TST_ERR != EINVAL) { in run()
|
/third_party/ltp/testcases/kernel/syscalls/fsconfig/ |
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/kernel/syscalls/clock_getres/ |
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/network/lib6/ |
D | in6_02.c | 85 if (TST_ERR != ENXIO) { in sub_if_indextoname_test() 88 if_index, TST_RET, TST_ERR); in sub_if_indextoname_test() 165 TST_ERR, strerror(TST_ERR)); in if_nameindex_test()
|
/third_party/ltp/testcases/kernel/syscalls/fallocate/ |
D | fallocate06.c | 110 switch (TST_ERR) { in setup() 144 if (TST_ERR != ENOSPC) { in check_result() 197 if (TST_ERR == ENOTSUP) in run() 218 if (TST_RET == -1 && TST_ERR == ENOTSUP) { in run()
|
D | fallocate05.c | 65 if (TST_ERR == ENOTSUP) in run() 95 if (TST_ERR != ENOSPC) { in run() 125 if (TST_ERR == ENOTSUP) in run()
|
/third_party/ltp/testcases/kernel/syscalls/statx/ |
D | statx07.c | 73 tst_brk(TFAIL | TST_ERR, in get_mode() 139 tst_brk(TBROK | TST_ERR, "failed to exportfs"); in setup() 158 tst_res(TWARN | TST_ERR, "failed to clear exportfs"); in cleanup()
|
/third_party/ltp/testcases/kernel/syscalls/chdir/ |
D | chdir01.c | 75 else if (TST_RET == -1 && (TST_ERR == EPERM || TST_ERR == ENOSYS)) in setup() 97 if (TST_RET != 0 && TST_ERR != experr) { in check_result()
|