/external/ltp/testcases/kernel/syscalls/fallocate/ |
D | fallocate05.c | 60 if (TST_RET) { in run() 71 if (TST_RET < 0) in run() 73 else if (TST_RET != bufsize) in run() 75 TST_RET, bufsize); in run() 77 tst_res(TPASS, "write() wrote %ld bytes", TST_RET); in run() 83 for (TST_RET = 0, extsize = 0; !TST_RET; extsize += blocksize) in run() 86 if (TST_RET != -1) { in run() 87 tst_res(TFAIL, "Invalid fallocate() return value %ld", TST_RET); in run() 101 for (tmp = extsize; tmp > 0; tmp -= TST_RET) { in run() 104 if (TST_RET <= 0) { in run() [all …]
|
/external/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()
|
/external/ltp/testcases/kernel/syscalls/keyctl/ |
D | keyctl05.c | 77 if (TST_RET < 0) in new_session_keyring() 89 if (TST_RET < 0) { in test_update_nonupdatable() 110 keyid = TST_RET; in test_update_nonupdatable() 117 if (TST_RET != 0) { in test_update_nonupdatable() 125 if (TST_RET == 0) { in test_update_nonupdatable() 153 if (TST_RET < 0) { in test_update_setperm_race() 157 keyid = TST_RET; in test_update_setperm_race() 165 if (TST_RET != 0) in test_update_setperm_race() 174 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()
|
D | keyctl07.c | 40 if (TST_RET != -1) in try_to_read_negative_key() 51 if (TST_RET < 0) in try_to_read_negative_key() 53 if (TST_RET != sizeof(key_id)) { in try_to_read_negative_key() 55 TST_RET, sizeof(key_id)); in try_to_read_negative_key() 64 if (TST_RET != -1) { in try_to_read_negative_key()
|
D | keyctl06.c | 28 if (TST_RET < 0) in add_test_key() 42 if (TST_RET < 0) in do_test() 54 if (TST_RET != sizeof(key_ids)) { in do_test() 56 TST_RET, sizeof(key_ids)); in do_test()
|
/external/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 …]
|
/external/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 …]
|
/external/ltp/testcases/kernel/syscalls/alarm/ |
D | alarm03.c | 30 if (TST_RET != 0) { in verify_alarm() 33 "alarm returned %ld", TST_RET); in verify_alarm() 37 "alarm returned %ld", TST_RET); in verify_alarm() 43 if (TST_RET != 100) { in verify_alarm() 46 "alarm returned %ld", TST_RET); in verify_alarm() 50 "alarm returned %ld", TST_RET); in verify_alarm()
|
/external/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()
|
/external/ltp/testcases/kernel/crypto/ |
D | crypto_user02.c | 50 if (TST_RET != 0 && TST_RET != -EEXIST) { in run() 51 if (TST_RET == -ENOENT) in run() 71 if (TST_RET && TST_RET != -EEXIST) in run() 89 if (TST_RET && TST_RET != -ENOENT) in run()
|
D | pcrypt_aead01.c | 47 if (TST_RET && TST_RET == -ENOENT) { in run() 51 if (TST_RET && TST_RET != -EEXIST) in run() 55 if (TST_RET) in run()
|
/external/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()
|
/external/ltp/testcases/kernel/syscalls/io_setup/ |
D | io_setup01.c | 35 if (TST_RET == 0) { in verify_failure() 41 if (TST_RET == -exp_err) { in verify_failure() 46 "expected -%s", tst_strerrno(-TST_RET), in verify_failure() 56 if (TST_RET != 0) { in verify_success() 58 TST_RET, tst_strerrno(-TST_RET)); in verify_success()
|
/external/ltp/testcases/kernel/syscalls/umask/ |
D | umask01.c | 29 if (TST_RET < 0 || TST_RET > 0777) { in verify_umask() 31 mskval, TST_RET); in verify_umask() 34 if (mskval > 0000 && TST_RET != mskval - 1) { in verify_umask() 37 mskval, TST_RET, mskval - 1); in verify_umask()
|
/external/ltp/testcases/kernel/syscalls/epoll_wait/ |
D | epoll_wait01.c | 102 if (TST_RET == -1) { in verify_epollout() 107 if (TST_RET != 1) { in verify_epollout() 109 TST_RET); in verify_epollout() 140 if (TST_RET == -1) { in verify_epollin() 145 if (TST_RET != 1) { in verify_epollin() 147 TST_RET); in verify_epollin() 184 if (TST_RET <= 0) { in verify_epollio() 186 TST_RET); in verify_epollio() 202 if (TST_RET != events_matched) { in verify_epollio()
|
/external/ltp/testcases/kernel/syscalls/fcntl/ |
D | fcntl02.c | 30 if (TST_RET == -1) { in verify_fcntl() 36 if (TST_RET < min_fd) { in verify_fcntl() 38 fname, min_fd, TST_RET, min_fd); in verify_fcntl() 42 fname, min_fd, TST_RET); in verify_fcntl() 44 SAFE_CLOSE(TST_RET); in verify_fcntl()
|
/external/ltp/testcases/kernel/syscalls/access/ |
D | access02.c | 64 if (TST_RET == -1) { in access_test() 79 if (TST_RET == -1) { in access_test() 94 if (TST_RET == -1) { in access_test() 101 SAFE_CLOSE(TST_RET); in access_test() 112 if (TST_RET == -1) { in access_test() 119 SAFE_CLOSE(TST_RET); in access_test() 132 if (TST_RET != 0) { in access_test()
|
/external/ltp/testcases/network/lib6/ |
D | in6_02.c | 55 if (!TST_RET != !test_case[i].nonzero) { in if_nametoindex_test() 57 test_case[i].name, TST_RET, in if_nametoindex_test() 61 if (TST_RET) { in if_nametoindex_test() 62 pifn = if_indextoname(TST_RET, ifname); in if_nametoindex_test() 66 test_case[i].name, TST_RET, in if_nametoindex_test() 67 TST_RET, pifn ? pifn : ""); in if_nametoindex_test() 72 test_case[i].name, TST_RET); in if_nametoindex_test() 84 if (!TST_RET) { in sub_if_indextoname_test() 88 if_index, TST_RET, TST_ERR); in sub_if_indextoname_test()
|
/external/ltp/testcases/kernel/syscalls/ioprio/ |
D | ioprio_set01.c | 34 if (TST_RET == -1) in run() 49 if (TST_RET == -1) in run() 59 if (TST_RET == -1) in setup() 62 orig_class = IOPRIO_PRIO_CLASS(TST_RET); in setup() 63 orig_prio = IOPRIO_PRIO_LEVEL(TST_RET); in setup()
|
/external/ltp/lib/ |
D | tst_af_alg.c | 17 if (TST_RET >= 0) in tst_alg_create() 18 return TST_RET; in tst_alg_create() 28 if (TST_RET == 0) in tst_alg_bind_addr() 75 if (TST_RET != 0) { in tst_have_alg() 110 if (TST_RET != 0) { in tst_alg_setkey() 120 if (TST_RET < 0) { in tst_alg_accept() 124 return TST_RET; in tst_alg_accept()
|
/external/ltp/testcases/kernel/syscalls/prctl/ |
D | prctl07.c | 73 if (TST_RET == 0) in check_cap_raise() 80 if (TST_RET == 0) in check_cap_raise() 97 if (TST_RET == 1) in check_cap_is_set() 100 else if (TST_RET == 0) in check_cap_is_set() 110 if (TST_RET == -1) in check_cap_lower() 163 if (TST_RET == 0) in verify_prctl() 179 if (TST_RET == 0) { in setup()
|
D | prctl06_execve.c | 25 if (TST_RET == 0) in main() 29 if (TST_RET == pw->pw_gid) in main() 35 if (TST_RET == 0) in main() 39 if (TST_RET == pw->pw_uid) in main()
|