/third_party/ltp/testcases/kernel/syscalls/openat/ |
D | openat02.c | 124 if (TEST_RETURN == -1) { in testfunc_append() 129 SAFE_WRITE(cleanup, 1, TEST_RETURN, STR, sizeof(STR) - 1); in testfunc_append() 131 file_offset = SAFE_LSEEK(cleanup, TEST_RETURN, 0, SEEK_CUR); in testfunc_append() 138 SAFE_CLOSE(cleanup, TEST_RETURN); in testfunc_append() 155 if (TEST_RETURN == -1) { in testfunc_cloexec() 160 sprintf(buf, "%ld", TEST_RETURN); in testfunc_cloexec() 172 SAFE_CLOSE(cleanup, TEST_RETURN); in testfunc_cloexec() 211 if (TEST_RETURN == -1) { in testfunc_largefile() 215 SAFE_CLOSE(cleanup, TEST_RETURN); in testfunc_largefile() 246 if (TEST_RETURN == -1) { in testfunc_noatime() [all …]
|
D | openat01.c | 74 if ((test->exp_ret == -1 && TEST_RETURN != -1) || in verify_openat() 75 (test->exp_ret == 0 && TEST_RETURN < 0)) { in verify_openat() 78 TEST_RETURN, test->exp_ret); in verify_openat() 82 if (TEST_RETURN > 0) in verify_openat() 83 SAFE_CLOSE(cleanup, TEST_RETURN); in verify_openat() 92 tst_resm(TPASS | TTERRNO, "openat() returned %ld", TEST_RETURN); in verify_openat()
|
/third_party/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 …]
|
/third_party/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()
|
/third_party/ltp/testcases/kernel/syscalls/fcntl/ |
D | fcntl31.c | 134 if (TEST_RETURN < 0) { in setup() 143 if (TEST_RETURN < 0) { in setup() 147 orig_pid = TEST_RETURN; in setup() 163 if (TEST_RETURN < 0) { in setown_pid_test() 170 if (TEST_RETURN < 0) { in setown_pid_test() 179 if (TEST_RETURN < 0) { in setown_pgrp_test() 187 if (TEST_RETURN < 0) { in setown_pgrp_test() 197 if (TEST_RETURN < 0) { in setownex_cleanup() 216 if (TEST_RETURN < 0) { in setownex_tid_test() 238 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 | 61 if (TEST_RETURN < 0) { in main() 66 orig_pipe_size = TEST_RETURN; in main() 69 if (TEST_RETURN < 0) { in main() 75 if (TEST_RETURN < 0) { in main() 81 if (TEST_RETURN >= new_pipe_size) { in main()
|
D | fcntl24.c | 145 if (TEST_RETURN == -1) { in main() 156 if (TEST_RETURN != F_WRLCK) in main() 159 fname, TEST_RETURN); in main() 162 if (TEST_RETURN != 0) in main() 165 fname, TEST_RETURN); in main()
|
D | fcntl25.c | 146 if (TEST_RETURN == -1) { in main() 157 if (TEST_RETURN != F_WRLCK) in main() 160 fname, TEST_RETURN); in main() 163 if (TEST_RETURN != 0) in main() 166 fname, TEST_RETURN); in main()
|
D | fcntl26.c | 146 if (TEST_RETURN == -1) { in main() 157 if (TEST_RETURN != F_WRLCK) in main() 160 fname, TEST_RETURN); in main() 163 if (TEST_RETURN != 0) in main() 166 fname, TEST_RETURN); in main()
|
/third_party/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 …]
|
/third_party/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()
|
/third_party/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()
|
/third_party/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()
|
/third_party/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 …]
|
/third_party/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()
|
/third_party/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()
|
D | setfsuid01.c | 58 if (TEST_RETURN == -1) { in main() 64 if (TEST_RETURN != uid) { in main() 66 TEST_RETURN, uid); in main() 70 TEST_RETURN); in main()
|
D | setfsuid02.c | 63 if (TEST_RETURN == -1) { in main() 69 if (TEST_RETURN == uid) { in main() 71 TEST_RETURN, uid); in main() 74 "%ld", TEST_RETURN); in main()
|
/third_party/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()
|
/third_party/ltp/testcases/kernel/syscalls/ulimit/ |
D | ulimit01.c | 189 if (TEST_RETURN == -1) { in main() 203 cmd, limit, TEST_RETURN); in main() 207 cmd, limit, TEST_RETURN); in main() 220 = TEST_RETURN; in main() 225 = TEST_RETURN - 1; in main()
|
/third_party/ltp/testcases/kernel/syscalls/get_robust_list/ |
D | get_robust_list01.c | 101 if (TEST_RETURN == -1) { in main() 117 if (TEST_RETURN) { in main() 138 if (TEST_RETURN == -1) { in main() 154 if (TEST_RETURN == 0) in main() 166 if (TEST_RETURN == -1) { in main()
|
/third_party/ltp/testcases/kernel/syscalls/rt_sigprocmask/ |
D | rt_sigprocmask01.c | 103 if (TEST_RETURN < 0) in main() 110 if (TEST_RETURN == -1) in main() 128 if (TEST_RETURN == -1) in main() 133 if (TEST_RETURN == 0) in main() 143 if (TEST_RETURN == -1) in main()
|
/third_party/ltp/testcases/kernel/syscalls/setfsgid/ |
D | setfsgid01.c | 57 if (TEST_RETURN == -1) { in main() 63 if (TEST_RETURN != gid) { in main() 65 TEST_RETURN, gid); in main() 69 TEST_RETURN); in main()
|
/third_party/ltp/testcases/kernel/syscalls/sgetmask/ |
D | sgetmask01.c | 131 sig, TEST_RETURN); in main() 133 if (TEST_RETURN != sig) { in main() 136 sig, TEST_RETURN); in main() 140 sig, TEST_RETURN); in main()
|