Home
last modified time | relevance | path

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

12345678910

/external/ltp/testcases/kernel/syscalls/request_key/
Drequest_key03.c62 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()
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()
/external/ltp/testcases/kernel/syscalls/prctl/
Dprctl02.c149 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/
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()
/external/ltp/testcases/kernel/syscalls/keyctl/
Dkeyctl05.c90 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()
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()
Dkeyctl01.c33 if (TST_RET == -1 && TST_ERR == ENOKEY) in do_test()
43 if (TST_ERR != ENOKEY) { in do_test()
/external/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()
/external/ltp/testcases/kernel/syscalls/quotactl/
Dquotactl03.c56 if (TST_ERR == EINVAL) in verify_quota()
60 if (TST_ERR != ENOENT) in verify_quota()
62 tst_strerrno(TST_ERR)); in verify_quota()
Dquotactl02.h46 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/
Dptrace07.c110 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/
Dadd_key02.c57 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/
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()
/external/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()
/external/ltp/testcases/kernel/syscalls/statx/
Dstatx07.c76 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/
Dclock_getres01.c65 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/
Dtst_test.h245 TST_ERR = errno; \
252 TST_ERR = errno; \
256 extern int TST_ERR;
264 TST_ERR = errno; \
/external/ltp/testcases/kernel/syscalls/timer_settime/
Dtimer_settime02.c77 (TST_ERR == EINVAL || TST_ERR == ENOTSUP)) { in run()
97 if (tc->error != TST_ERR) { in run()
/external/ltp/testcases/kernel/syscalls/splice/
Dsplice02.c28 TST_ERR, strerror(TST_ERR)); in splice_test()
/external/ltp/testcases/kernel/syscalls/fallocate/
Dfallocate05.c61 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/
Dnice02.c33 if (TST_ERR) { in verify_nice()
49 if (TST_ERR) in verify_nice()
Dnice01.c35 if (TST_ERR) { in verify_nice()
51 if (TST_ERR) in verify_nice()
/external/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()
/external/ltp/testcases/kernel/syscalls/setdomainname/
Dsetdomainname03.c26 if (TST_ERR != EPERM) { in do_test()
28 TST_ERR); in do_test()
/external/ltp/testcases/kernel/syscalls/vhangup/
Dvhangup01.c35 else if (TST_ERR == EPERM) in run()
38 tst_res(TFAIL, "expected EPERM got %d", TST_ERR); in run()

12345678910