Home
last modified time | relevance | path

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

/third_party/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 …]
/third_party/ltp/testcases/kernel/syscalls/writev/
Dwritev01.c49 int exp_ret; member
57 .exp_ret = -1,
65 .exp_ret = -1,
73 .exp_ret = -1,
81 .exp_ret = 0,
88 .exp_ret = CHUNK,
95 .exp_ret = -1,
121 ret = (TST_RET == tcase->exp_ret); in test_writev()
122 if (TST_RET < 0 || tcase->exp_ret < 0) { in test_writev()
126 tcase->exp_ret, tst_strerrno(tcase->exp_errno), in test_writev()
[all …]
/third_party/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 …]
/third_party/openssl/test/
Dpkits-test.pl767 my ( $tnum, $title, $exp_ret ) = @$_;
769 $exp_ret += 32 if $exp_ret;
787 if ( $exp_ret != $ret ) {
789 $errmsg .= "expected $exp_ret\n";
803 my ( $tnum, $title, $exargs, $exp_epol, $exp_aset, $exp_uset, $exp_ret )
806 $exp_ret += 32 if $exp_ret;
881 if ( $exp_ret != $ret ) {
882 print "Return code:$ret, expected $exp_ret\n";
/third_party/ltp/testcases/kernel/syscalls/setns/
Dsetns01.c27 int exp_ret; member
78 .exp_ret = -1,
84 .exp_ret = -1,
91 .exp_ret = -1,
97 .exp_ret = -1,
103 .exp_ret = -1,
126 if (ret == t->exp_ret) { in test_setns()
138 t->msg, ret, t->exp_ret); in test_setns()
/third_party/ltp/testcases/kernel/syscalls/clock_nanosleep/
Dclock_nanosleep01.c47 int exp_ret; member
58 .exp_ret = -1,
67 .exp_ret = -1,
76 .exp_ret = -1,
85 .exp_ret = -1,
92 .exp_ret = -1,
101 .exp_ret = -1,
211 if ((TST_RET != tc->exp_ret) || (TST_ERR != tc->exp_err)) { in do_test()
214 tc->exp_ret, tst_strerrno(tc->exp_err), tc->exp_err); in do_test()
/third_party/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()
250 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()
/third_party/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()
/third_party/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()
/third_party/ltp/testcases/kernel/syscalls/readv/
Dreadv01.c32 int iov_count, exp_ret; member
64 else if (TST_RET != tc->exp_ret) in test_readv()
68 if (TST_RET != tc->exp_ret) in test_readv()
77 if (ptr[j] != (fpos < tc->exp_ret ? 0x42 : 0)) in test_readv()
85 tst_res(TPASS, "readv() correctly read %d bytes ", tc->exp_ret); in test_readv()
/third_party/ltp/testcases/kernel/syscalls/select/
Dselect01.c42 int exp_ret = 1; in run() local
49 exp_ret++; in run()
64 if (TST_RET != exp_ret) { in run()
66 tc->desc, TST_RET, exp_ret); in run()
70 tst_res(TPASS, "select() %s returned %i", tc->desc, exp_ret); in run()
/third_party/ltp/testcases/kernel/syscalls/fchownat/
Dfchownat01.c51 int exp_ret; member
110 if (TEST_RETURN != test->exp_ret) { in fchownat_verify()
113 TEST_RETURN, test->exp_ret, test->exp_errno); in fchownat_verify()
120 test->exp_ret, strerror(test->exp_errno)); in fchownat_verify()
/third_party/ltp/testcases/kernel/syscalls/openat/
Dopenat01.c58 int exp_ret; member
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()
/third_party/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()
/third_party/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()
/third_party/ltp/testcases/kernel/syscalls/mknodat/
Dmknodat01.c58 int exp_ret; member
77 if (TEST_RETURN != test->exp_ret) { in verify_mknodat()
80 TEST_RETURN, test->exp_ret); in verify_mknodat()
/third_party/ltp/testcases/kernel/syscalls/futex/
Dfutex_cmp_requeue01.c91 int exp_ret = tc->set_wakes + tc->set_requeues; in verify_futex_cmp_requeue() local
123 if (TST_RET > exp_ret) { in verify_futex_cmp_requeue()
125 TST_RET, exp_ret); in verify_futex_cmp_requeue()
/third_party/ltp/testcases/kernel/syscalls/setreuid/
Dsetreuid03.c26 int exp_ret; member
84 if (tc->exp_ret) { in run()
Dsetreuid05.c28 int exp_ret; member
87 if (tc->exp_ret) { in run_child()
/third_party/ltp/testcases/kernel/syscalls/setregid/
Dsetregid03.c25 int *exp_ret; member
116 if (*tc->exp_ret == 0) in run()
/third_party/mbedtls/tests/suites/
Dtest_suite_x509parse.function678 int exp_ret )
698 TEST_ASSERT( ret == exp_ret );
708 int exp_ret, char *exp_vrfy_out )
733 TEST_ASSERT( ret == exp_ret );
Dtest_suite_ssl.function3489 int exp_ret;
3659 exp_ret = ( i == padlen ) ? 0 : MBEDTLS_ERR_SSL_INVALID_MAC;
3660 TEST_EQUAL( exp_ret, mbedtls_ssl_decrypt_buf( &ssl, &t1, &rec ) );
4066 char *label, data_t *result_str, int exp_ret )
4078 output, result_str->len ) == exp_ret );
4080 if( exp_ret == 0 )