Home
last modified time | relevance | path

Searched refs:exp_ret (Results 1 – 17 of 17) sorted by relevance

/external/ltp/testcases/kernel/syscalls/membarrier/
Dmembarrier01.c33 long exp_ret; /* expected return code for given cmd */ member
52 .exp_ret = -1,
65 .exp_ret = -1,
78 .exp_ret = 0,
93 .exp_ret = -1,
105 .exp_ret = 0,
122 .exp_ret = 0,
140 .exp_ret = -1,
152 .exp_ret = 0,
166 .exp_ret = 0,
[all …]
/external/ltp/testcases/kernel/syscalls/writev/
Dwritev01.c61 int exp_ret; member
69 .exp_ret = -1,
77 .exp_ret = -1,
85 .exp_ret = -1,
93 .exp_ret = 0,
100 .exp_ret = CHUNK,
107 .exp_ret = -1,
133 ret = (TST_RET == tcase->exp_ret); in test_writev()
134 if (TST_RET < 0 || tcase->exp_ret < 0) { in test_writev()
138 tcase->exp_ret, tst_strerrno(tcase->exp_errno), in test_writev()
[all …]
/external/ltp/testcases/kernel/syscalls/waitid/
Dwaitid02.c60 int exp_ret; member
84 .exp_ret = -1,
92 .exp_ret = -1,
100 .exp_ret = 0,
108 .exp_ret = 0,
115 .exp_ret = 0,
122 .exp_ret = 0,
130 .exp_ret = 0,
139 .exp_ret = -1,
264 if (TEST_RETURN == t->exp_ret) { in test_waitid()
[all …]
/external/ltp/testcases/kernel/syscalls/fgetxattr/
Dfgetxattr02.c78 int exp_ret; member
91 .exp_ret = XATTR_TEST_VALUE_SIZE,
102 .exp_ret = XATTR_TEST_VALUE_SIZE,
113 .exp_ret = XATTR_TEST_VALUE_SIZE,
123 .exp_ret = -1,
134 .exp_ret = -1,
145 .exp_ret = -1,
156 .exp_ret = -1,
172 if (tc[i].exp_ret == TST_RET) { in verify_fgetxattr()
249 if (tc[i].exp_ret >= 0) { in setup()
Dfgetxattr01.c51 int exp_ret; member
59 .exp_ret = -1,
66 .exp_ret = -1,
73 .exp_ret = XATTR_TEST_VALUE_SIZE,
87 if (tc[i].exp_ret == TST_RET) in verify_fgetxattr()
/external/ltp/testcases/kernel/syscalls/clock_nanosleep/
Dclock_nanosleep01.c47 int exp_ret; member
63 .exp_ret = EINVAL,
71 .exp_ret = EINVAL,
79 .exp_ret = EINVAL,
87 .exp_ret = EINTR,
136 if (TST_RET != tc->exp_ret) { in do_test()
139 tc->exp_ret, tst_strerrno(tc->exp_err), tc->exp_err); in do_test()
/external/ltp/testcases/kernel/syscalls/setns/
Dsetns01.c49 int exp_ret; member
70 .exp_ret = -1,
76 .exp_ret = -1,
84 .exp_ret = -1,
90 .exp_ret = -1,
96 .exp_ret = -1,
170 if (ret == t->exp_ret) { in test_setns()
179 ret, t->exp_ret); in test_setns()
/external/ltp/testcases/kernel/syscalls/mremap/
Dmremap05.c57 void *exp_ret; member
80 .exp_ret = MAP_FAILED,
89 .exp_ret = MAP_FAILED,
98 .exp_ret = MAP_FAILED,
143 if (t->ret == t->exp_ret) { in test_mremap()
158 t->ret, t->exp_ret); in test_mremap()
184 t->exp_ret = t->new_address; in setup3()
192 t->exp_ret = t->new_address; in setup4()
/external/ltp/testcases/kernel/syscalls/readlinkat/
Dreadlinkat01.c58 int exp_ret; member
78 if (TEST_RETURN != test->exp_ret) { in verify_readlinkat()
81 TEST_RETURN, test->exp_ret); in verify_readlinkat()
88 TEST_RETURN, test->exp_ret); in verify_readlinkat()
92 if (test->exp_ret > 0 && strcmp(test->exp_buf, buf)) { in verify_readlinkat()
/external/ltp/testcases/kernel/syscalls/fchownat/
Dfchownat01.c52 int exp_ret; member
111 if (TEST_RETURN != test->exp_ret) { in fchownat_verify()
114 TEST_RETURN, test->exp_ret, test->exp_errno); in fchownat_verify()
121 test->exp_ret, strerror(test->exp_errno)); in fchownat_verify()
/external/ltp/testcases/kernel/syscalls/openat/
Dopenat01.c59 int exp_ret; member
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()
/external/ltp/testcases/kernel/syscalls/set_thread_area/
Dset_thread_area01.c42 int exp_ret; member
79 if (TEST_RETURN != tests[i].exp_ret) { in main()
82 TEST_RETURN, tests[i].exp_ret); in main()
/external/ltp/testcases/kernel/syscalls/mkdirat/
Dmkdirat01.c53 int exp_ret; member
70 if (TEST_RETURN != test->exp_ret) { in verify_mkdirat()
73 TEST_RETURN, test->exp_ret); in verify_mkdirat()
/external/ltp/testcases/kernel/syscalls/mknodat/
Dmknodat01.c59 int exp_ret; member
78 if (TEST_RETURN != test->exp_ret) { in verify_mknodat()
81 TEST_RETURN, test->exp_ret); in verify_mknodat()
/external/ltp/testcases/kernel/syscalls/setregid/
Dsetregid03.c27 int *exp_ret; member
132 if (*tc->exp_ret == 0) in run()
/external/ltp/testcases/kernel/syscalls/setreuid/
Dsetreuid03.c52 int *exp_ret; member
112 if (TEST_RETURN == *test_data[i].exp_ret) { in main()
Dsetreuid05.c45 int *exp_ret; member
108 if (TEST_RETURN == *test_data[i].exp_ret) { in main()