/external/ltp/testcases/network/lib6/ |
D | getaddrinfo_01.c | 87 if (!TEST_RETURN) { in gaiv4() 119 TEST_RETURN, gai_strerror(TEST_RETURN)); in gaiv4() 128 if (!TEST_RETURN) { in gaiv4() 149 shortname, TEST_RETURN, gai_strerror(TEST_RETURN)); in gaiv4() 164 if (!TEST_RETURN) { in gaiv4() 195 "service returns %ld (\"%s\")", TEST_RETURN, in gaiv4() 196 gai_strerror(TEST_RETURN)); in gaiv4() 208 if (!TEST_RETURN) { in gaiv4() 244 hostname, service, TEST_RETURN, in gaiv4() 245 gai_strerror(TEST_RETURN)); in gaiv4() [all …]
|
/external/ltp/testcases/kernel/syscalls/openat/ |
D | openat02.c | 125 if (TEST_RETURN == -1) { in testfunc_append() 130 SAFE_WRITE(cleanup, 1, TEST_RETURN, STR, sizeof(STR) - 1); in testfunc_append() 132 file_offset = SAFE_LSEEK(cleanup, TEST_RETURN, 0, SEEK_CUR); in testfunc_append() 139 SAFE_CLOSE(cleanup, TEST_RETURN); in testfunc_append() 156 if (TEST_RETURN == -1) { in testfunc_cloexec() 161 sprintf(buf, "%ld", TEST_RETURN); in testfunc_cloexec() 173 SAFE_CLOSE(cleanup, TEST_RETURN); in testfunc_cloexec() 212 if (TEST_RETURN == -1) { in testfunc_largefile() 216 SAFE_CLOSE(cleanup, TEST_RETURN); in testfunc_largefile() 247 if (TEST_RETURN == -1) { in testfunc_noatime() [all …]
|
D | openat01.c | 75 if ((test->exp_ret == -1 && TEST_RETURN != -1) || in verify_openat() 76 (test->exp_ret == 0 && TEST_RETURN < 0)) { in verify_openat() 79 TEST_RETURN, test->exp_ret); in verify_openat() 83 if (TEST_RETURN > 0) in verify_openat() 84 SAFE_CLOSE(cleanup, TEST_RETURN); in verify_openat() 93 tst_resm(TPASS | TTERRNO, "openat() returned %ld", TEST_RETURN); in verify_openat()
|
/external/ltp/testcases/kernel/io/aio/ |
D | aio01.c | 135 } while (TEST_RETURN == -EAGAIN); in main() 136 if (TEST_RETURN < 0) { in main() 138 ", errno=%d", TEST_RETURN, TEST_ERRNO); in main() 166 } while (TEST_RETURN == -EAGAIN); in main() 167 if (TEST_RETURN < 0) { in main() 169 ", errno=%d", TEST_RETURN, TEST_ERRNO); in main() 197 } while (TEST_RETURN == -EAGAIN); in main() 198 if (TEST_RETURN < 0) { in main() 200 ", errno=%d", TEST_RETURN, TEST_ERRNO); in main() 228 } while (TEST_RETURN == -EAGAIN); in main() [all …]
|
/external/ltp/testcases/kernel/syscalls/setreuid/ |
D | setreuid01.c | 80 if (TEST_RETURN == -1) { in main() 87 TEST_RETURN); in main() 97 if (TEST_RETURN == -1) { in main() 104 TEST_RETURN); in main() 114 if (TEST_RETURN == -1) { in main() 121 TEST_RETURN); in main() 131 if (TEST_RETURN == -1) { in main() 138 TEST_RETURN); in main() 148 if (TEST_RETURN == -1) { in main() 155 TEST_RETURN); in main()
|
/external/ltp/testcases/kernel/syscalls/fcntl/ |
D | fcntl31.c | 132 if (TEST_RETURN < 0) { in setup() 141 if (TEST_RETURN < 0) { in setup() 145 orig_pid = TEST_RETURN; in setup() 161 if (TEST_RETURN < 0) { in setown_pid_test() 168 if (TEST_RETURN < 0) { in setown_pid_test() 177 if (TEST_RETURN < 0) { in setown_pgrp_test() 185 if (TEST_RETURN < 0) { in setown_pgrp_test() 195 if (TEST_RETURN < 0) { in setownex_cleanup() 214 if (TEST_RETURN < 0) { in setownex_tid_test() 236 if (TEST_RETURN < 0) { in setownex_pid_test() [all …]
|
D | fcntl23.c | 139 if (TEST_RETURN == -1) { in main() 146 if (TEST_RETURN != F_RDLCK) in main() 149 fname, TEST_RETURN); in main() 152 if (TEST_RETURN != 0) in main() 155 fname, TEST_RETURN); in main() 162 if (close(TEST_RETURN) == -1) { in main()
|
D | fcntl30.c | 62 if (TEST_RETURN < 0) { in main() 67 orig_pipe_size = TEST_RETURN; in main() 70 if (TEST_RETURN < 0) { in main() 76 if (TEST_RETURN < 0) { in main() 82 if (TEST_RETURN >= new_pipe_size) { in main()
|
D | fcntl24.c | 145 if (TEST_RETURN == -1) { in main() 151 if (TEST_RETURN != F_WRLCK) in main() 154 fname, TEST_RETURN); in main() 157 if (TEST_RETURN != 0) in main() 160 fname, TEST_RETURN); in main()
|
D | fcntl25.c | 146 if (TEST_RETURN == -1) { in main() 152 if (TEST_RETURN != F_WRLCK) in main() 155 fname, TEST_RETURN); in main() 158 if (TEST_RETURN != 0) in main() 161 fname, TEST_RETURN); in main()
|
D | fcntl26.c | 146 if (TEST_RETURN == -1) { in main() 152 if (TEST_RETURN != F_WRLCK) in main() 155 fname, TEST_RETURN); in main() 158 if (TEST_RETURN != 0) in main() 161 fname, TEST_RETURN); in main()
|
/external/ltp/testcases/kernel/syscalls/open/ |
D | open12.c | 126 if (TEST_RETURN == -1) { in test_append() 131 len1 = SAFE_LSEEK(cleanup, TEST_RETURN, 0, SEEK_CUR); in test_append() 132 SAFE_WRITE(cleanup, 1, TEST_RETURN, TEST_FILE, sizeof(TEST_FILE)); in test_append() 133 len2 = SAFE_LSEEK(cleanup, TEST_RETURN, 0, SEEK_CUR); in test_append() 134 SAFE_CLOSE(cleanup, TEST_RETURN); in test_append() 167 if (TEST_RETURN == -1) { in test_noatime() 171 SAFE_READ(cleanup, 1, TEST_RETURN, &read_buf, 1); in test_noatime() 172 SAFE_CLOSE(cleanup, TEST_RETURN); in test_noatime() 196 if (TEST_RETURN == -1) { in test_cloexec() 201 sprintf(buf, "%ld", TEST_RETURN); in test_cloexec() [all …]
|
/external/ltp/testcases/kernel/syscalls/unshare/ |
D | unshare02.c | 136 if (TEST_RETURN == -1) { in main() 139 } else if (TEST_RETURN == 0) { in main() 140 TEST_RETURN = unshare(-1); in main() 141 if (TEST_RETURN == 0) { in main() 144 } else if (TEST_RETURN == -1) { in main() 177 } else if (TEST_RETURN == 0) { in main() 178 TEST_RETURN = unshare(0); in main() 179 if (TEST_RETURN == 0) { in main() 182 } else if (TEST_RETURN == -1) { in main()
|
/external/ltp/testcases/kernel/syscalls/waitid/ |
D | waitid01.c | 72 if (TEST_RETURN < 0) in main() 76 if (TEST_RETURN == 0) { in main() 80 if (TEST_RETURN == -1) { in main() 89 if (TEST_RETURN < 0) in main() 93 if (TEST_RETURN == 0) { in main() 99 if (TEST_RETURN == -1) { in main() 107 if (TEST_RETURN < 0) in main() 111 if (TEST_RETURN == 0) { in main() 117 if (TEST_RETURN == -1) { in main()
|
/external/ltp/testcases/kernel/syscalls/adjtimex/ |
D | adjtimex01.c | 65 if ((TEST_RETURN >= 0) && (TEST_RETURN <= 5)) { in main() 67 SET_MODE, TEST_RETURN); in main() 71 "returned %ld", SET_MODE, TEST_RETURN); in main() 79 if ((TEST_RETURN >= 0) && (TEST_RETURN <= 5)) { in main() 81 ADJ_OFFSET_SINGLESHOT, TEST_RETURN); in main() 85 "%ld", ADJ_OFFSET_SINGLESHOT, TEST_RETURN); in main()
|
/external/ltp/testcases/kernel/syscalls/getgroups/ |
D | getgroups01.c | 85 if (TEST_RETURN == 0) { in main() 105 if (TEST_RETURN == -1) { in main() 121 if (TEST_RETURN <= 1) { in main() 124 TEST_RETURN); in main() 126 TEST(GETGROUPS(cleanup, TEST_RETURN - 1, gidset)); in main() 127 if (TEST_RETURN == -1) { in main() 139 TEST_RETURN); in main() 144 if ((entries = TEST_RETURN) == -1) { in main()
|
/external/ltp/testcases/kernel/syscalls/set_robust_list/ |
D | set_robust_list01.c | 105 if (TEST_RETURN) { in main() 110 TEST_RETURN, -1, TEST_ERRNO, EINVAL); in main() 115 TEST_RETURN, -1, TEST_ERRNO, EINVAL); in main() 119 "errno = %d (expected %d)", TEST_RETURN, -1, in main() 129 if (TEST_RETURN == 0) { in main() 132 "errno = %d (expected %d)", TEST_RETURN, 0, in main() 137 "errno = %d (expected %d)", TEST_RETURN, 0, in main()
|
/external/ltp/testcases/kernel/syscalls/dup/ |
D | dup04.c | 146 if (TEST_RETURN == -1) in main() 152 fd[0], TEST_RETURN); in main() 154 SAFE_CLOSE(cleanup, TEST_RETURN); in main() 159 if (TEST_RETURN == -1) { in main() 165 fd[1], TEST_RETURN); in main() 168 SAFE_CLOSE(cleanup, TEST_RETURN); in main()
|
/external/ltp/testcases/kernel/syscalls/fork/ |
D | fork01.c | 149 if (TEST_RETURN != child_id) { in parent_pid() 152 child_id, TEST_RETURN); in parent_pid() 178 if (TEST_RETURN == -1) { in main() 183 if (TEST_RETURN == 0) { in main() 190 TEST_RETURN); in main() 192 wait_status = waitpid(TEST_RETURN, &kid_status, 0); in main() 194 if (wait_status == TEST_RETURN) { in main()
|
/external/ltp/testcases/kernel/syscalls/cma/ |
D | process_vm01.c | 218 cma_check_ret(sane_params->len, TEST_RETURN); in cma_test_sane_params() 237 cma_check_ret(-1, TEST_RETURN); in cma_test_flags() 240 cma_check_ret(params->len, TEST_RETURN); in cma_test_flags() 256 cma_check_ret(-1, TEST_RETURN); in cma_test_iov_len_overflow() 273 cma_check_ret(-1, TEST_RETURN); in cma_test_iov_invalid() 280 cma_check_ret(-1, TEST_RETURN); in cma_test_iov_invalid() 287 cma_check_ret(-1, TEST_RETURN); in cma_test_iov_invalid() 294 cma_check_ret(-1, TEST_RETURN); in cma_test_iov_invalid() 309 cma_check_ret(-1, TEST_RETURN); in cma_test_invalid_pid() 318 cma_check_ret(-1, TEST_RETURN); in cma_test_invalid_pid() [all …]
|
/external/ltp/testcases/kernel/syscalls/timer_gettime/ |
D | timer_gettime01.c | 63 if (TEST_RETURN != 0) in main() 70 if (TEST_RETURN == 0) { in main() 78 if (TEST_RETURN == -1 && TEST_ERRNO == EINVAL) { in main() 82 "timer_gettime(-1) = %li", TEST_RETURN); in main() 86 if (TEST_RETURN == -1 && TEST_ERRNO == EFAULT) { in main() 90 "timer_gettime(-1) = %li", TEST_RETURN); in main()
|
/external/ltp/testcases/kernel/syscalls/io_getevents/ |
D | io_getevents01.c | 84 switch (TEST_RETURN) { in main() 90 "returned value = %ld : %s", TEST_RETURN, in main() 91 strerror(-TEST_RETURN)); in main() 98 "expected %s (%i)", strerror(-TEST_RETURN), in main() 99 (int)TEST_RETURN, strerror(-EXP_RET), EXP_RET); in main()
|
/external/ltp/testcases/kernel/syscalls/io_cancel/ |
D | io_cancel01.c | 85 switch (TEST_RETURN) { in main() 91 "returned value = %ld : %s", TEST_RETURN, in main() 92 strerror(-TEST_RETURN)); in main() 99 "expected %s (%i)", strerror(-TEST_RETURN), in main() 100 (int)TEST_RETURN, strerror(-EXP_RET), EXP_RET); in main()
|
/external/ltp/testcases/kernel/syscalls/setfsuid/ |
D | setfsuid04.c | 93 if (TEST_RETURN != -1) { in do_master_child() 94 close(TEST_RETURN); in do_master_child() 119 if (TEST_RETURN != -1) { in do_master_child() 120 close(TEST_RETURN); in do_master_child() 154 if (TEST_RETURN == -1) { in do_master_child() 159 close(TEST_RETURN); in do_master_child()
|
/external/ltp/testcases/kernel/syscalls/signal/ |
D | signal06.c | 103 if (TEST_RETURN == -1) in tfunc() 108 if (TEST_RETURN == -1) in tfunc() 134 if (TEST_RETURN == -1) in main() 141 if (TEST_RETURN == -1) in main() 152 if (TEST_RETURN) in main() 159 if (TEST_RETURN) in main()
|