Home
last modified time | relevance | path

Searched refs:TEST_RETURN (Results 1 – 25 of 271) sorted by relevance

1234567891011

/third_party/ltp/testcases/kernel/syscalls/openat/
Dopenat02.c124 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 …]
Dopenat01.c74 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/
Daio01.c135 } 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/
Dsetreuid01.c80 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/
Dfcntl31.c134 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 …]
Dfcntl23.c139 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()
Dfcntl30.c61 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()
Dfcntl24.c145 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()
Dfcntl25.c146 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()
Dfcntl26.c146 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/
Dopen12.c126 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/
Dwaitid01.c72 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/
Dgetgroups01.c85 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/
Dset_robust_list01.c105 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/
Dprocess_vm01.c218 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/
Dfork01.c149 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/
Dsetfsuid04.c93 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()
Dsetfsuid01.c58 if (TEST_RETURN == -1) { in main()
64 if (TEST_RETURN != uid) { in main()
66 TEST_RETURN, uid); in main()
70 TEST_RETURN); in main()
Dsetfsuid02.c63 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/
Dsignal06.c103 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/
Dulimit01.c189 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/
Dget_robust_list01.c101 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/
Drt_sigprocmask01.c103 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/
Dsetfsgid01.c57 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/
Dsgetmask01.c131 sig, TEST_RETURN); in main()
133 if (TEST_RETURN != sig) { in main()
136 sig, TEST_RETURN); in main()
140 sig, TEST_RETURN); in main()

1234567891011