/external/ltp/testcases/kernel/syscalls/request_key/ |
D | request_key03.c | 62 if (TST_RET < 0 && TST_ERR != EINVAL) { in test_with_key_type() 63 if (TST_ERR == ENODEV) { in test_with_key_type() 99 if (TST_RET < 0 && TST_ERR != EINVAL && in test_with_key_type() 100 TST_ERR != ENOKEY && TST_ERR != EDQUOT) { in test_with_key_type() 119 if (TST_RET < 0 && TST_ERR != ENOKEY && in test_with_key_type() 120 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()
|
/external/ltp/testcases/kernel/syscalls/prctl/ |
D | prctl02.c | 149 if (tc->exp_errno == TST_ERR) { in verify_prctl() 152 if (tc->option == PR_SET_SECCOMP && TST_ERR == EINVAL) in verify_prctl() 165 if (TST_ERR == EINVAL) in setup() 169 if (TST_ERR == EINVAL) in setup() 173 if (TST_ERR == EINVAL) in setup() 177 if (TST_ERR == EINVAL) in setup() 181 if (TST_ERR == EINVAL) in setup()
|
/external/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()
|
/external/ltp/testcases/kernel/syscalls/keyctl/ |
D | keyctl05.c | 90 if (TST_ERR == ENODEV) { in test_update_nonupdatable() 95 if (TST_ERR == EBADMSG && !strcmp(type, "asymmetric")) { in test_update_nonupdatable() 100 if (TST_ERR == ENOENT && !strcmp(type, "asymmetric")) { in test_update_nonupdatable() 130 if (TST_ERR != EOPNOTSUPP) { in test_update_nonupdatable() 174 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()
|
D | keyctl01.c | 33 if (TST_RET == -1 && TST_ERR == ENOKEY) in do_test() 43 if (TST_ERR != ENOKEY) { in do_test()
|
/external/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()
|
/external/ltp/testcases/kernel/syscalls/quotactl/ |
D | quotactl03.c | 56 if (TST_ERR == EINVAL) in verify_quota() 60 if (TST_ERR != ENOENT) in verify_quota() 62 tst_strerrno(TST_ERR)); in verify_quota()
|
D | quotactl02.h | 46 if (TST_ERR == EINVAL || TST_ERR == ENOSYS) in check_support_cmd() 51 if (TST_ERR == EINVAL || TST_ERR == ENOSYS) in check_support_cmd()
|
/external/ltp/testcases/kernel/syscalls/ptrace/ |
D | ptrace07.c | 110 if (TST_ERR == EIO) in do_test() 113 if (TST_ERR == EINVAL) in do_test() 116 if (TST_ERR == ENODEV) in do_test() 136 } else if (TST_ERR == EINVAL) { in do_test()
|
/external/ltp/testcases/kernel/syscalls/add_key/ |
D | add_key02.c | 57 if (TST_ERR == EFAULT) { in verify_add_key() 63 if (TST_ERR == ENODEV) { in verify_add_key() 74 if (TST_ERR == EBADMSG && !strcmp(tcases[i].type, "asymmetric")) { in verify_add_key()
|
/external/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()
|
/external/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()
|
/external/ltp/testcases/kernel/syscalls/statx/ |
D | statx07.c | 76 tst_brk(TFAIL | TST_ERR, in get_mode() 142 tst_brk(TCONF | TST_ERR, "%s not found", cmd); in setup() 144 tst_brk(TBROK | TST_ERR, "failed to exportfs"); in setup() 163 tst_res(TWARN | TST_ERR, "failed to clear exportfs"); in cleanup()
|
/external/ltp/testcases/kernel/syscalls/clock_getres/ |
D | clock_getres01.c | 65 if (TST_ERR == EINVAL) { in do_test() 74 if (TST_ERR != tcase[i].err) { in do_test() 77 tcase[i].name, tst_strerrno(TST_ERR), tst_strerrno(tcase[i].err)); in do_test()
|
/external/ltp/include/ |
D | tst_test.h | 245 TST_ERR = errno; \ 252 TST_ERR = errno; \ 256 extern int TST_ERR; 264 TST_ERR = errno; \
|
/external/ltp/testcases/kernel/syscalls/timer_settime/ |
D | timer_settime02.c | 77 (TST_ERR == EINVAL || TST_ERR == ENOTSUP)) { in run() 97 if (tc->error != TST_ERR) { in run()
|
/external/ltp/testcases/kernel/syscalls/splice/ |
D | splice02.c | 28 TST_ERR, strerror(TST_ERR)); in splice_test()
|
/external/ltp/testcases/kernel/syscalls/fallocate/ |
D | fallocate05.c | 61 if (TST_ERR == ENOTSUP) in run() 91 if (TST_ERR != ENOSPC) { in run() 121 if (TST_ERR == ENOTSUP) in run()
|
/external/ltp/testcases/kernel/syscalls/nice/ |
D | nice02.c | 33 if (TST_ERR) { in verify_nice() 49 if (TST_ERR) in verify_nice()
|
D | nice01.c | 35 if (TST_ERR) { in verify_nice() 51 if (TST_ERR) in verify_nice()
|
/external/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()
|
/external/ltp/testcases/kernel/syscalls/setdomainname/ |
D | setdomainname03.c | 26 if (TST_ERR != EPERM) { in do_test() 28 TST_ERR); in do_test()
|
/external/ltp/testcases/kernel/syscalls/vhangup/ |
D | vhangup01.c | 35 else if (TST_ERR == EPERM) in run() 38 tst_res(TFAIL, "expected EPERM got %d", TST_ERR); in run()
|