|
13 | 13 |
|
14 | 14 | #include "testutil.h" |
15 | 15 |
|
16 | | -#define MAXCOUNT 5 |
| 16 | +#define MAXCOUNT 7 |
17 | 17 | static int my_param_count; |
18 | 18 | static BIO *my_param_b[MAXCOUNT]; |
19 | 19 | static int my_param_oper[MAXCOUNT]; |
@@ -138,20 +138,20 @@ static int test_bio_callback_ex(void) |
138 | 138 | my_param_count = 0; |
139 | 139 | i = BIO_read(bio, buf, sizeof(buf)); |
140 | 140 | if (!TEST_int_eq(i, 0) |
141 | | - || !TEST_int_eq(my_param_count, 2) |
| 141 | + || !TEST_int_eq(my_param_count, 6) |
142 | 142 | || !TEST_ptr_eq(my_param_b[0], bio) |
143 | 143 | || !TEST_int_eq(my_param_oper[0], BIO_CB_READ) |
144 | 144 | || !TEST_ptr_eq(my_param_argp[0], buf) |
145 | 145 | || !TEST_size_t_eq(my_param_len[0], sizeof(buf)) |
146 | 146 | || !TEST_long_eq(my_param_argl[0], 0L) |
147 | 147 | || !TEST_int_eq((int)my_param_ret[0], 1) |
148 | | - || !TEST_ptr_eq(my_param_b[1], bio) |
149 | | - || !TEST_int_eq(my_param_oper[1], BIO_CB_READ | BIO_CB_RETURN) |
150 | | - || !TEST_ptr_eq(my_param_argp[1], buf) |
151 | | - || !TEST_size_t_eq(my_param_len[1], sizeof(buf)) |
152 | | - || !TEST_long_eq(my_param_argl[1], 0L) |
153 | | - || !TEST_size_t_eq(my_param_processed[1], 0) |
154 | | - || !TEST_int_eq((int)my_param_ret[1], 0)) |
| 148 | + || !TEST_ptr_eq(my_param_b[5], bio) |
| 149 | + || !TEST_int_eq(my_param_oper[5], BIO_CB_READ | BIO_CB_RETURN) |
| 150 | + || !TEST_ptr_eq(my_param_argp[5], buf) |
| 151 | + || !TEST_size_t_eq(my_param_len[5], sizeof(buf)) |
| 152 | + || !TEST_long_eq(my_param_argl[5], 0L) |
| 153 | + || !TEST_size_t_eq(my_param_processed[5], 0) |
| 154 | + || !TEST_int_eq((int)my_param_ret[5], 0)) |
155 | 155 | goto err; |
156 | 156 |
|
157 | 157 | my_param_count = 0; |
@@ -291,19 +291,19 @@ static int test_bio_callback(void) |
291 | 291 | my_param_count = 0; |
292 | 292 | i = BIO_read(bio, buf, sizeof(buf)); |
293 | 293 | if (!TEST_int_eq(i, 0) |
294 | | - || !TEST_int_eq(my_param_count, 2) |
| 294 | + || !TEST_int_eq(my_param_count, 6) |
295 | 295 | || !TEST_ptr_eq(my_param_b[0], bio) |
296 | 296 | || !TEST_int_eq(my_param_oper[0], BIO_CB_READ) |
297 | 297 | || !TEST_ptr_eq(my_param_argp[0], buf) |
298 | 298 | || !TEST_int_eq(my_param_argi[0], sizeof(buf)) |
299 | 299 | || !TEST_long_eq(my_param_argl[0], 0L) |
300 | 300 | || !TEST_long_eq(my_param_ret[0], 1L) |
301 | | - || !TEST_ptr_eq(my_param_b[1], bio) |
302 | | - || !TEST_int_eq(my_param_oper[1], BIO_CB_READ | BIO_CB_RETURN) |
303 | | - || !TEST_ptr_eq(my_param_argp[1], buf) |
304 | | - || !TEST_int_eq(my_param_argi[1], sizeof(buf)) |
305 | | - || !TEST_long_eq(my_param_argl[1], 0L) |
306 | | - || !TEST_long_eq(my_param_ret[1], 0L)) |
| 301 | + || !TEST_ptr_eq(my_param_b[5], bio) |
| 302 | + || !TEST_int_eq(my_param_oper[5], BIO_CB_READ | BIO_CB_RETURN) |
| 303 | + || !TEST_ptr_eq(my_param_argp[5], buf) |
| 304 | + || !TEST_int_eq(my_param_argi[5], sizeof(buf)) |
| 305 | + || !TEST_long_eq(my_param_argl[5], 0L) |
| 306 | + || !TEST_long_eq(my_param_ret[5], 0L)) |
307 | 307 | goto err; |
308 | 308 |
|
309 | 309 | my_param_count = 0; |
|
0 commit comments