/third_party/ltp/include/ |
D | tst_test_macros.h | 13 TST_RET = SCALL; \ 24 extern long TST_RET; 60 if (TST_RET == -1) { \ 66 if (TST_RET < 0) { \ 68 TST_RET, SSCALL, ##__VA_ARGS__); \ 79 TST_RET; \ 88 TST_RET, #SCALL, ##__VA_ARGS__); \ 91 TST_RET; \ 101 TST_MSGP_(TPASS, " returned fd %ld", TST_RET, \ 104 TST_RET; \ [all …]
|
/third_party/ltp/testcases/kernel/syscalls/fallocate/ |
D | fallocate05.c | 64 if (TST_RET) { in run() 75 if (TST_RET < 0) in run() 77 else if (TST_RET != bufsize) in run() 79 TST_RET, bufsize); in run() 81 tst_res(TPASS, "write() wrote %ld bytes", TST_RET); in run() 87 for (TST_RET = 0, extsize = 0; !TST_RET; extsize += blocksize) in run() 90 if (TST_RET != -1) { in run() 91 tst_res(TFAIL, "Invalid fallocate() return value %ld", TST_RET); in run() 105 for (tmp = extsize; tmp > 0; tmp -= TST_RET) { in run() 108 if (TST_RET <= 0) { in run() [all …]
|
D | fallocate06.c | 107 if (!TST_RET) { in setup() 137 if (tc->fill_fs && !tc->no_cow && TST_RET < 0) { in check_result() 138 if (TST_RET != -1) { in check_result() 140 func, TST_RET); in check_result() 154 if (TST_RET < 0) { in check_result() 159 if (TST_RET != exp) { in check_result() 162 func, TST_RET, exp); in check_result() 194 if (TST_RET) { in run() 218 if (TST_RET == -1 && TST_ERR == ENOTSUP) { in run() 223 if (!check_result(tc, TESTED_FLAGS, 0) || TST_RET) in run()
|
/third_party/ltp/libs/libltpsigwait/ |
D | sigwait.c | 25 if (TST_RET == -1) { in test_empty_set() 31 tst_res(TFAIL, "Expected return value -1, got: %ld", TST_RET); in test_empty_set() 55 if (TST_RET == -1) { in test_timeout() 61 tst_res(TFAIL, "Expected return value -1, got: %ld", TST_RET); in test_timeout() 85 if (TST_RET == signo) { in test_unmasked_matching() 112 if (TST_RET == signo) in test_unmasked_matching_noinfo() 135 if (TST_RET == -1) in test_masked_matching() 145 if (TST_RET == signo) { in test_masked_matching() 156 if (TST_RET == -1) in test_masked_matching() 187 if (TST_RET == -1) in test_masked_matching_rt() [all …]
|
/third_party/ltp/testcases/kernel/logging/kmsg/ |
D | kmsg01.c | 55 return TST_RET; in inject_msg() 84 if (TST_RET < 0) { in find_msg() 93 } else if (TST_RET < bufsize) { in find_msg() 95 msg[TST_RET] = '\0'; in find_msg() 194 if (TST_RET == 0) in timed_read_kmsg() 196 if (TST_RET == -1 && TST_ERR != EPIPE) { in timed_read_kmsg() 210 } while (TST_RET > 0); in timed_read_kmsg() 214 if (TST_RET == -2) in timed_read_kmsg() 236 if (TST_RET == -1 && TST_ERR == EAGAIN) in test_read_nonblock() 240 TST_RET); in test_read_nonblock() [all …]
|
/third_party/ltp/testcases/kernel/syscalls/request_key/ |
D | request_key04.c | 28 if (TST_RET < 0) in do_test() 33 if (TST_RET < 0) { in do_test() 40 if (TST_RET < 0) { in do_test() 47 if (TST_RET < 0) in do_test() 49 if (TST_RET != 0) in do_test() 53 if (TST_RET != -1) in do_test() 59 if (TST_RET < 0) in do_test() 61 if (TST_RET != 0) in do_test()
|
/third_party/ltp/testcases/kernel/syscalls/membarrier/ |
D | membarrier01.c | 309 if (TST_RET >= 0 && tc[i].exp_ret == TST_RET) in verify_membarrier() 312 if (TST_RET < 0) { in verify_membarrier() 313 if (tc[i].exp_ret == TST_RET) in verify_membarrier() 316 failed_not_ok(tc[i], TST_RET, TST_ERR); in verify_membarrier() 324 if (TST_RET >= 0) in verify_membarrier() 327 if (TST_RET < 0) { in verify_membarrier() 331 failed_unexpec(tc[i], TST_RET, TST_ERR); in verify_membarrier() 339 if (TST_RET >= 0) { in verify_membarrier() 340 if (tc[i].exp_ret == TST_RET) in verify_membarrier() 346 if (TST_RET < 0) { in verify_membarrier() [all …]
|
/third_party/ltp/testcases/kernel/syscalls/keyctl/ |
D | keyctl05.c | 79 if (TST_RET < 0) in new_session_keyring() 93 if (TST_RET < 0) { in test_update_nonupdatable() 118 keyid = TST_RET; in test_update_nonupdatable() 125 if (TST_RET != 0) { in test_update_nonupdatable() 133 if (TST_RET == 0) { in test_update_nonupdatable() 161 if (TST_RET < 0) { in test_update_setperm_race() 165 keyid = TST_RET; in test_update_setperm_race() 173 if (TST_RET != 0) in test_update_setperm_race() 182 if (TST_RET != 0 && TST_ERR != EACCES) { in test_update_setperm_race()
|
D | keyctl04.c | 27 if (TST_RET < 0) in do_test() 29 tid_keyring = TST_RET; in do_test() 32 if (TST_RET < 0) in do_test() 36 if (TST_RET < 0) in do_test() 38 if (TST_RET == tid_keyring) in do_test()
|
/third_party/ltp/testcases/kernel/syscalls/writev/ |
D | writev07.c | 65 if (TST_RET == -1 && TST_ERR != EFAULT) { in test_partially_valid_iovec() 72 if (TST_RET == -1 && TST_ERR == EFAULT) { in test_partially_valid_iovec() 94 tst_res(TINFO, "writev() has written %ld bytes", TST_RET); in test_partially_valid_iovec() 95 if (TST_RET > (long) wr_iovec[0].iov_len) { in test_partially_valid_iovec() 103 SAFE_READ(1, fd, tmp, TST_RET); in test_partially_valid_iovec() 104 if (memcmp(tmp, wr_iovec[0].iov_base, TST_RET) == 0) { in test_partially_valid_iovec() 108 tst_res_hexd(TFAIL, wr_iovec[0].iov_base, TST_RET, in test_partially_valid_iovec() 110 tst_res_hexd(TFAIL, tmp, TST_RET, in test_partially_valid_iovec() 115 if (off_after == initial_file_offset + TST_RET) in test_partially_valid_iovec()
|
/third_party/ltp/testcases/kernel/syscalls/eventfd/ |
D | eventfd06.c | 68 if (TST_RET < 0) in async_write() 69 tst_brk(TBROK, "io_submit() failed: %s", tst_strerrno(-TST_RET)); in async_write() 72 if (TST_RET < 0) in async_write() 73 tst_brk(TBROK, "io_getevents() failed: %s", tst_strerrno(-TST_RET)); in async_write() 82 if (TST_RET == -1 && TST_ERR != EAGAIN) in clear_counter() 103 if (TST_RET == -1) in test_select() 127 if (TST_RET == -1) in test_poll() 139 if (TST_RET < 0) in setup() 140 tst_brk(TBROK, "io_setup() failed: %s", tst_strerrno(-TST_RET)); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/cma/ |
D | process_vm01.c | 110 TST_EXP_EQ_LI(TST_RET, sane_params->len); in test_sane_params() 133 TST_EXP_EQ_LI(TST_RET, -1); in test_flags() 136 TST_EXP_EQ_LI(TST_RET, params->len); in test_flags() 153 TST_EXP_EQ_LI(TST_RET, -1); in test_iov_len_overflow() 169 TST_EXP_EQ_LI(TST_RET, -1); in test_iov_invalid() 176 TST_EXP_EQ_LI(TST_RET, -1); in test_iov_invalid() 183 TST_EXP_EQ_LI(TST_RET, -1); in test_iov_invalid() 190 TST_EXP_EQ_LI(TST_RET, -1); in test_iov_invalid() 208 TST_EXP_EQ_LI(TST_RET, -1); in test_invalid_pid() 216 TST_EXP_EQ_LI(TST_RET, -1); in test_invalid_pid() [all …]
|
/third_party/ltp/testcases/network/lib6/ |
D | getaddrinfo_01.c | 164 if (TST_RET == EAI_BADFLAGS) { in check_addrinfo_badflags() 166 TST_RET, gai_strerror(TST_RET)); in check_addrinfo_badflags() 167 } else if (TST_RET) { in check_addrinfo_badflags() 169 TST_RET, gai_strerror(TST_RET)); in check_addrinfo_badflags() 233 if (TST_RET != EAI_NONAME) in gaiv() 235 TST_RET, EAI_NONAME); in gaiv() 236 tst_res(TPASS, "AI_NUMERICHOST: expected %ld (EAI_NONAME)", TST_RET); in gaiv() 248 if (TST_RET != EAI_NONAME) in gaiv() 250 TST_RET, gai_strerror(TST_RET), EAI_NONAME); in gaiv() 251 tst_res(TPASS, "AI_NUMERICSERV: returns %ld (EAI_NONAME)", TST_RET); in gaiv() [all …]
|
D | in6_02.c | 59 if (!TST_RET != !test_case[i].nonzero) { in if_nametoindex_test() 61 test_case[i].name, TST_RET, in if_nametoindex_test() 65 if (TST_RET) { in if_nametoindex_test() 66 pifn = if_indextoname(TST_RET, ifname); in if_nametoindex_test() 70 test_case[i].name, TST_RET, in if_nametoindex_test() 71 TST_RET, pifn ? pifn : ""); in if_nametoindex_test() 76 test_case[i].name, TST_RET); in if_nametoindex_test() 88 if (!TST_RET) { in sub_if_indextoname_test() 92 if_index, TST_RET, TST_ERR); in sub_if_indextoname_test()
|
/third_party/ltp/testcases/kernel/syscalls/io_setup/ |
D | io_setup01.c | 37 if (TST_RET == 0) { in verify_failure() 43 if (TST_RET == -exp_err) { in verify_failure() 48 "expected -%s", tst_strerrno(-TST_RET), in verify_failure() 58 if (TST_RET == -ENOSYS) in verify_success() 60 if (TST_RET != 0) { in verify_success() 62 TST_RET, tst_strerrno(-TST_RET)); in verify_success()
|
/third_party/ltp/testcases/kernel/syscalls/fadvise/ |
D | posix_fadvise04.c | 49 if (TST_RET == 0) { in verify_fadvise() 56 if (TST_RET == ESPIPE) { in verify_fadvise() 59 TST_RET, tst_strerrno(TST_RET)); in verify_fadvise() 63 "expected %d", TST_RET, in verify_fadvise() 64 tst_strerrno(TST_RET), ESPIPE); in verify_fadvise()
|
D | posix_fadvise02.c | 49 if (TST_RET == 0) { in verify_fadvise() 56 if (TST_RET == EBADF) { in verify_fadvise() 59 TST_RET, tst_strerrno(TST_RET)); in verify_fadvise() 63 "expected %d", TST_RET, in verify_fadvise() 64 tst_strerrno(TST_RET), EBADF); in verify_fadvise()
|
D | posix_fadvise03.c | 92 if (TST_RET == 0) { in verify_fadvise() 99 if (TST_RET == expected_error) { in verify_fadvise() 103 TST_RET, in verify_fadvise() 104 n, tst_strerrno(TST_RET)); in verify_fadvise() 109 TST_RET, in verify_fadvise() 110 tst_strerrno(TST_RET), in verify_fadvise()
|
/third_party/ltp/testcases/kernel/syscalls/gethostid/ |
D | gethostid01.c | 40 if (TST_RET == -1) in run() 43 if (tc[i] == TST_RET) in run() 44 tst_res(TPASS, "hostid is %ld, expected %ld", TST_RET, tc[i]); in run() 46 tst_res(TFAIL, "hostid is %ld, expected %ld", TST_RET, tc[i]); in run() 52 if (TST_RET == -1) in setup() 55 tst_res(TINFO, "get original hostid: %ld", origin = TST_RET); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/socketcall/ |
D | socketcall03.c | 33 if (TST_RET < 0) in verify_socketcall() 34 tst_res(TFAIL | TTERRNO, "socketcall() for bind call failed with %ld", TST_RET); in verify_socketcall() 36 tst_res(TPASS, "socketcall() for bind call passed, returned %ld", TST_RET); in verify_socketcall() 42 if (TST_RET < 0) in verify_socketcall() 43 tst_res(TFAIL | TTERRNO, "socketcall() for listen call failed with %ld", TST_RET); in verify_socketcall() 45 tst_res(TPASS, "socketcall() for listen call passed, returned %ld", TST_RET); in verify_socketcall()
|
/third_party/ltp/testcases/kernel/syscalls/fsconfig/ |
D | fsconfig01.c | 30 if (TST_RET == -1) in run() 34 if (TST_RET == -1) in run() 38 if (TST_RET == -1) { in run() 46 if (TST_RET == -1) { in run() 54 if (TST_RET == -1) { in run() 62 if (TST_RET == -1) in run() 73 if (TST_RET == -1) in run()
|
/third_party/ltp/testcases/kernel/syscalls/epoll_wait/ |
D | epoll_wait01.c | 105 if (TST_RET == -1) { in verify_epollout() 110 if (TST_RET != 1) { in verify_epollout() 112 TST_RET); in verify_epollout() 143 if (TST_RET == -1) { in verify_epollin() 148 if (TST_RET != 1) { in verify_epollin() 150 TST_RET); in verify_epollin() 187 if (TST_RET <= 0) { in verify_epollio() 189 TST_RET); in verify_epollio() 205 if (TST_RET != events_matched) { in verify_epollio()
|
/third_party/ltp/testcases/kernel/syscalls/openat/ |
D | openat04.c | 53 if (TST_RET == -1 && TST_ERR == EINVAL) in do_mount() 56 if (TST_RET == -1) { in do_mount() 61 if (TST_RET) in do_mount() 62 tst_brk(TBROK, "Invalid mount return value %ld", TST_RET); in do_mount() 71 if (TST_RET == -1) { in open_tmpfile_supported() 78 if (TST_RET < 0) in open_tmpfile_supported() 79 tst_brk(TBROK, "Invalid openat return value %ld", TST_RET); in open_tmpfile_supported() 81 SAFE_CLOSE(TST_RET); in open_tmpfile_supported()
|
/third_party/ltp/testcases/kernel/syscalls/timer_gettime/ |
D | timer_gettime01.c | 42 if (TST_RET) { in setup() 54 if (TST_RET == 0) { in verify() 67 if (TST_RET == -1 && TST_ERR == EINVAL) in verify() 70 tst_res(TFAIL | TTERRNO, "timer_gettime(-1) = %li", TST_RET); in verify() 73 if (TST_RET == -1 && TST_ERR == EFAULT) in verify() 76 tst_res(TFAIL | TTERRNO, "timer_gettime(-1) = %li", TST_RET); in verify()
|
/third_party/ltp/testcases/kernel/syscalls/time/ |
D | time01.c | 30 if (TST_RET == -1) { in verify_time() 36 tst_res(TPASS, "time() returned value %ld", TST_RET); in verify_time() 37 else if (*tloc == TST_RET) in verify_time() 40 TST_RET, (intmax_t) *tloc); in verify_time() 44 TST_RET, (intmax_t) *tloc); in verify_time()
|