Home
last modified time | relevance | path

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

1234567

/external/ltp/testcases/kernel/syscalls/request_key/
Drequest_key03.c74 if (TST_RET < 0 && TST_ERR != EINVAL) { in test_with_key_type()
75 if (TST_ERR == ENODEV) { in test_with_key_type()
111 if (TST_RET < 0 && TST_ERR != EINVAL && in test_with_key_type()
112 TST_ERR != ENOKEY && TST_ERR != EDQUOT) { in test_with_key_type()
131 if (TST_RET < 0 && TST_ERR != ENOKEY && in test_with_key_type()
132 TST_ERR != ENOENT && TST_ERR != EDQUOT) { in test_with_key_type()
Drequest_key04.c67 saved_errno = TST_ERR; in do_test()
76 TST_ERR = saved_errno; in do_test()
77 if (TST_ERR == EACCES) { in do_test()
/external/ltp/testcases/kernel/syscalls/open/
Dopen08.c94 if (TST_ERR == tcases[i].error) { in verify_open()
96 "errno = %d : %s", TST_ERR, in verify_open()
97 strerror(TST_ERR)); in verify_open()
100 "expected %d", TST_ERR, in verify_open()
101 strerror(TST_ERR), tcases[i].error); in verify_open()
/external/ltp/testcases/kernel/syscalls/keyctl/
Dkeyctl05.c102 if (TST_ERR == ENODEV) { in test_update_nonupdatable()
107 if (TST_ERR == EBADMSG && !strcmp(type, "asymmetric")) { in test_update_nonupdatable()
112 if (TST_ERR == ENOENT && !strcmp(type, "asymmetric")) { in test_update_nonupdatable()
142 if (TST_ERR != EOPNOTSUPP) { in test_update_nonupdatable()
186 if (TST_RET != 0 && TST_ERR != EACCES) { in test_update_setperm_race()
Dkeyctl07.c55 if (TST_ERR != ENOKEY && TST_ERR != ENOENT) { in try_to_read_negative_key()
80 if (TST_ERR != ENOKEY) { in try_to_read_negative_key()
Dkeyctl01.c45 if (TST_RET == -1 && TST_ERR == ENOKEY) in do_test()
55 if (TST_ERR != ENOKEY) { in do_test()
/external/ltp/testcases/kernel/logging/kmsg/
Dkmsg01.c73 errno = TST_ERR; in inject_msg()
104 if (TST_ERR == EAGAIN) in find_msg()
107 else if (TST_ERR == EPIPE) in find_msg()
215 if (TST_RET == -1 && TST_ERR != EPIPE) { in timed_read_kmsg()
216 ret = TST_ERR; in timed_read_kmsg()
255 if (TST_RET == -1 && TST_ERR == EAGAIN) in test_read_nonblock()
375 if (TST_ERR == EPIPE) in test_read_returns_first_message()
441 if (TST_RET == -1 && TST_ERR == EPIPE) in test_messages_overwritten()
462 if (TST_RET == -1 && TST_ERR != EPIPE) in read_msg_seqno()
465 if (TST_ERR == EPIPE) in read_msg_seqno()
/external/ltp/testcases/kernel/syscalls/ptrace/
Dptrace07.c122 if (TST_ERR == EIO) in do_test()
125 if (TST_ERR == EINVAL) in do_test()
128 if (TST_ERR == ENODEV) in do_test()
148 } else if (TST_ERR == EINVAL) { in do_test()
/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/quotactl/
Dquotactl03.c75 if (TST_ERR == EINVAL) { in verify_quota()
80 if (TST_ERR != ENOENT) { in verify_quota()
82 " %s expected ENOENT", tst_strerrno(TST_ERR)); in verify_quota()
/external/ltp/testcases/kernel/syscalls/add_key/
Dadd_key02.c73 if (TST_ERR == EFAULT) { in verify_add_key()
79 if (TST_ERR == ENODEV) { in verify_add_key()
90 if (TST_ERR == EBADMSG && !strcmp(tcases[i].type, "asymmetric")) { in verify_add_key()
/external/ltp/testcases/kernel/syscalls/clock_getres/
Dclock_getres01.c63 if (TST_ERR == EINVAL) { in do_test()
72 if (TST_ERR != tcase[i].err) { in do_test()
75 tcase[i].name, tst_strerrno(TST_ERR), tst_strerrno(tcase[i].err)); in do_test()
/external/ltp/testcases/kernel/syscalls/fchmod/
Dfchmod06.c60 if (TST_ERR == tcases[i].exp_errno) { in verify_fchmod()
67 TST_ERR, tst_strerrno(TST_ERR)); in verify_fchmod()
/external/ltp/testcases/network/lib6/
Din6_02.c99 if (TST_ERR != ENXIO) { in sub_if_indextoname_test()
102 if_index, TST_RET, TST_ERR); in sub_if_indextoname_test()
179 TST_ERR, strerror(TST_ERR)); in if_nameindex_test()
/external/ltp/include/
Dtst_test.h209 TST_ERR = errno; \
213 extern int TST_ERR;
221 TST_ERR = errno; \
/external/ltp/testcases/kernel/syscalls/splice/
Dsplice02.c45 TST_ERR, strerror(TST_ERR)); in splice_test()
/external/ltp/testcases/kernel/syscalls/nice/
Dnice02.c46 if (TST_ERR) { in verify_nice()
62 if (TST_ERR) in verify_nice()
Dnice01.c48 if (TST_ERR) { in verify_nice()
64 if (TST_ERR) in verify_nice()
/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()
/external/ltp/testcases/kernel/syscalls/getcwd/
Dgetcwd01.c62 TST_ERR = errno; in verify_getcwd()
68 if (TST_ERR != tc->exp_err) { in verify_getcwd()
/external/ltp/testcases/kernel/syscalls/fremovexattr/
Dfremovexattr01.c60 if (TST_RET < 0 && TST_ERR != ENOATTR) { in verify_fremovexattr()
81 if (TST_RET == -1 && TST_ERR == EOPNOTSUPP) in setup()
/external/ltp/testcases/kernel/syscalls/rmdir/
Drmdir03.c65 if (TST_ERR != EACCES) { in do_rmdir()
66 if (tc->dir_mode & S_ISVTX && TST_ERR == EPERM) in do_rmdir()
/external/ltp/testcases/kernel/syscalls/ipc/shmctl/
Dshmctl05.c84 if (TST_ERR != EIDRM && TST_ERR != EINVAL) { in do_test()
/external/ltp/testcases/kernel/syscalls/flock/
Dflock03.c36 "parent: %s", tst_strerrno(TST_ERR)); in childfunc()
45 "unlocking: %s", tst_strerrno(TST_ERR)); in childfunc()
/external/ltp/testcases/kernel/syscalls/futex/
Dfutex_wait_bitset.h32 if (TST_ERR == ENOSYS) { in verify_futex_wait_bitset()
38 if (TST_ERR != ETIMEDOUT) { in verify_futex_wait_bitset()

1234567