Home
last modified time | relevance | path

Searched refs:TST_ERR (Results 1 – 25 of 291) sorted by relevance

12345678910>>...12

/third_party/ltp/testcases/kernel/syscalls/request_key/
Drequest_key03.c57 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()
Drequest_key04.c55 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/
Dprctl02.c150 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/
Dkeyctl05.c94 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()
Dkeyctl07.c43 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/
Dopen08.c81 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/
Dkmsg01.c54 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/
Dfcntl38.c46 TST_ERR, strerror(TST_ERR)); in setup_dnotify()
51 TST_ERR, strerror(TST_ERR)); in setup_dnotify()
/third_party/ltp/testcases/kernel/syscalls/getrlimit/
Dgetrlimit02.c40 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/
Dptrace07.c111 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/
Dmembarrier01.c316 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/
Dtst_test_macros.h13 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/
Dadd_key02.c58 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/
Dquotactl03.c53 if (TST_ERR == EINVAL) in verify_quota()
57 if (TST_ERR != ENOENT) in verify_quota()
59 tst_strerrno(TST_ERR)); in verify_quota()
Dquotactl02.h40 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/
Dioperm02.c76 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/
Dfchmod06.c47 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/
Ddup205.c61 if (TST_ERR != EBADF && TST_ERR != EMFILE && TST_ERR != EINVAL) { in run()
/third_party/ltp/testcases/kernel/syscalls/fsconfig/
Dfsconfig01.c39 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/
Dclock_getres01.c72 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/
Din6_02.c85 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/
Dfallocate06.c110 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()
Dfallocate05.c65 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/
Dstatx07.c73 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/
Dchdir01.c75 else if (TST_RET == -1 && (TST_ERR == EPERM || TST_ERR == ENOSYS)) in setup()
97 if (TST_RET != 0 && TST_ERR != experr) { in check_result()

12345678910>>...12