/external/ltp/testcases/network/lib6/ |
D | getaddrinfo_01.c | 86 if (!TEST_RETURN) { in gaiv4() 118 TEST_RETURN, gai_strerror(TEST_RETURN)); in gaiv4() 127 if (!TEST_RETURN) { in gaiv4() 148 shortname, TEST_RETURN, gai_strerror(TEST_RETURN)); in gaiv4() 163 if (!TEST_RETURN) { in gaiv4() 194 "service returns %ld (\"%s\")", TEST_RETURN, in gaiv4() 195 gai_strerror(TEST_RETURN)); in gaiv4() 207 if (!TEST_RETURN) { in gaiv4() 243 hostname, service, TEST_RETURN, in gaiv4() 244 gai_strerror(TEST_RETURN)); in gaiv4() [all …]
|
D | in6_02.c | 84 if (!TEST_RETURN != !n2i[i].nonzero) { in n2itest() 86 "[should be %szero]", n2i[i].name, TEST_RETURN, in n2itest() 90 if (TEST_RETURN) { in n2itest() 91 pifn = if_indextoname(TEST_RETURN, ifname); in n2itest() 95 "\"%s\"", n2i[i].name, TEST_RETURN, in n2itest() 96 TEST_RETURN, pifn ? pifn : ""); in n2itest() 101 n2i[i].name, TEST_RETURN); in n2itest() 113 if (!TEST_RETURN) { in sub_i2ntest() 116 "but errno %d != ENXIO", if_index, TEST_RETURN, in sub_i2ntest()
|
/external/ltp/testcases/kernel/syscalls/io_setup/ |
D | io_setup01.c | 73 if (TEST_RETURN == expected_return) { in main() 78 "expected %d", TEST_RETURN, expected_return); in main() 85 if (TEST_RETURN == 0) { in main() 88 } else if (TEST_RETURN == expected_return) { in main() 90 "returned value = %ld : %s", TEST_RETURN, in main() 91 strerror(-1 * TEST_RETURN)); in main() 94 "expected %d", TEST_RETURN, expected_return); in main() 100 if (TEST_RETURN == 0) { in main() 103 } else if (TEST_RETURN == expected_return) { in main() 105 "returned value = %ld : %s", TEST_RETURN, in main() [all …]
|
/external/ltp/testcases/kernel/syscalls/io_submit/ |
D | io_submit01.c | 108 check_result(-EINVAL, TEST_RETURN); in main() 115 check_result(-EINVAL, TEST_RETURN); in main() 126 switch (TEST_RETURN) { in main() 132 TEST_RETURN, strerror(-1 * TEST_RETURN)); in main() 138 TEST_RETURN, strerror(-1 * TEST_RETURN)); in main() 143 check_result(-EFAULT, TEST_RETURN); in main() 153 if (TEST_RETURN == 0) in main() 155 else if (TEST_RETURN == -EFAULT || TEST_RETURN == -EINVAL) in main() 158 TEST_RETURN, strerror(-1 * TEST_RETURN)); in main() 163 TEST_RETURN, strerror(-1 * TEST_RETURN), in main() [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() 213 if (TEST_RETURN == -1) { in testfunc_largefile() 217 SAFE_CLOSE(cleanup, TEST_RETURN); in testfunc_largefile() 248 if (TEST_RETURN == -1) { in testfunc_noatime() [all …]
|
/external/ltp/testcases/kernel/io/aio/aio01/ |
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/setregid/ |
D | setregid01.c | 79 if (TEST_RETURN == -1) { in main() 86 TEST_RETURN); in main() 96 if (TEST_RETURN == -1) { in main() 103 TEST_RETURN); in main() 113 if (TEST_RETURN == -1) { in main() 120 TEST_RETURN); in main() 130 if (TEST_RETURN == -1) { in main() 137 TEST_RETURN); in main() 147 if (TEST_RETURN == -1) { in main() 151 TEST_RETURN); in main()
|
/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()
|
/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 | 133 if (TEST_RETURN == -1) { in main() 136 } else if (TEST_RETURN == 0) { in main() 137 TEST_RETURN = unshare(-1); in main() 138 if (TEST_RETURN == 0) { in main() 141 } 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/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/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/logging/kmsg/ |
D | kmsg01.c | 78 return TEST_RETURN; in inject_msg() 109 if (TEST_RETURN < 0) { in find_msg() 119 } else if (TEST_RETURN < bufsize) { in find_msg() 121 msg[TEST_RETURN] = '\0'; in find_msg() 220 if (TEST_RETURN == 0) in timed_read_kmsg() 222 if (TEST_RETURN == -1 && TEST_ERRNO != EPIPE) { in timed_read_kmsg() 236 } while (TEST_RETURN > 0); in timed_read_kmsg() 240 if (TEST_RETURN == -2) in timed_read_kmsg() 265 if (TEST_RETURN == -1 && TEST_ERRNO == EAGAIN) in test_read_nonblock() 269 TEST_RETURN); in test_read_nonblock() [all …]
|
/external/ltp/testcases/kernel/syscalls/alarm/ |
D | alarm03.c | 135 if (TEST_RETURN != 0) { in main() 139 getpid(), TEST_RETURN); in main() 143 getpid(), TEST_RETURN); in main() 153 if (TEST_RETURN <= 0 || TEST_RETURN > 101) { in main() 157 TEST_RETURN); in main() 161 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/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/dup/ |
D | dup04.c | 145 if (TEST_RETURN == -1) in main() 151 fd[0], TEST_RETURN); in main() 153 if (close(TEST_RETURN) == -1) in main() 159 if (TEST_RETURN == -1) { in main() 165 fd[1], TEST_RETURN); in main() 168 if (close(TEST_RETURN) == -1) in main()
|
/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/flock/ |
D | flock02.c | 104 if (TEST_RETURN == -1 && TEST_ERRNO == EBADF) in main() 106 else if (TEST_RETURN == 0) in main() 114 if (TEST_RETURN == -1 && TEST_ERRNO == EINVAL) in main() 116 else if (TEST_RETURN == 0) in main() 124 if (TEST_RETURN == -1 && TEST_ERRNO == EINVAL) { in main() 127 } else if (TEST_RETURN == 0) in main()
|
/external/ltp/testcases/kernel/syscalls/cma/ |
D | process_vm01.c | 226 cma_check_ret(sane_params->len, TEST_RETURN); in cma_test_sane_params() 245 cma_check_ret(-1, TEST_RETURN); in cma_test_flags() 248 cma_check_ret(params->len, TEST_RETURN); in cma_test_flags() 264 cma_check_ret(-1, TEST_RETURN); in cma_test_iov_len_overflow() 281 cma_check_ret(-1, TEST_RETURN); in cma_test_iov_invalid() 288 cma_check_ret(-1, TEST_RETURN); in cma_test_iov_invalid() 295 cma_check_ret(-1, TEST_RETURN); in cma_test_iov_invalid() 302 cma_check_ret(-1, TEST_RETURN); in cma_test_iov_invalid() 317 cma_check_ret(-1, TEST_RETURN); in cma_test_invalid_pid() 326 cma_check_ret(-1, TEST_RETURN); in cma_test_invalid_pid() [all …]
|
/external/ltp/testcases/kernel/syscalls/fadvise/ |
D | posix_fadvise03.c | 159 if (TEST_RETURN == 0) { in main() 166 if (TEST_RETURN == expected_error) { in main() 170 TEST_RETURN, in main() 171 advise, strerror(TEST_RETURN)); in main() 176 TEST_RETURN, in main() 177 strerror(TEST_RETURN), in main()
|
D | posix_fadvise02.c | 115 if (TEST_RETURN == 0) { in main() 122 if (TEST_RETURN == TC[i].error) { in main() 125 TEST_RETURN, strerror(TEST_RETURN)); in main() 129 "expected %d", TEST_RETURN, in main() 130 strerror(TEST_RETURN), TC[i].error); in main()
|