|
@@ -218,7 +218,7 @@ test_buffer_pullup(void *arg)
|
|
|
|
|
|
/* There are a bunch of cases for pullup. One is the trivial case. Let's
|
|
/* There are a bunch of cases for pullup. One is the trivial case. Let's
|
|
mess around with an empty buffer. */
|
|
mess around with an empty buffer. */
|
|
- buf_pullup(buf, 16, 1);
|
|
|
|
|
|
+ buf_pullup(buf, 16);
|
|
buf_get_first_chunk_data(buf, &cp, &sz);
|
|
buf_get_first_chunk_data(buf, &cp, &sz);
|
|
tt_ptr_op(cp, OP_EQ, NULL);
|
|
tt_ptr_op(cp, OP_EQ, NULL);
|
|
tt_uint_op(sz, OP_EQ, 0);
|
|
tt_uint_op(sz, OP_EQ, 0);
|
|
@@ -240,7 +240,7 @@ test_buffer_pullup(void *arg)
|
|
* can get tested. */
|
|
* can get tested. */
|
|
tt_int_op(fetch_from_buf(tmp, 3000, buf), OP_EQ, 3000);
|
|
tt_int_op(fetch_from_buf(tmp, 3000, buf), OP_EQ, 3000);
|
|
tt_mem_op(tmp,OP_EQ, stuff, 3000);
|
|
tt_mem_op(tmp,OP_EQ, stuff, 3000);
|
|
- buf_pullup(buf, 2048, 0);
|
|
|
|
|
|
+ buf_pullup(buf, 2048);
|
|
assert_buf_ok(buf);
|
|
assert_buf_ok(buf);
|
|
buf_get_first_chunk_data(buf, &cp, &sz);
|
|
buf_get_first_chunk_data(buf, &cp, &sz);
|
|
tt_ptr_op(cp, OP_NE, NULL);
|
|
tt_ptr_op(cp, OP_NE, NULL);
|
|
@@ -263,7 +263,7 @@ test_buffer_pullup(void *arg)
|
|
tt_ptr_op(cp, OP_NE, NULL);
|
|
tt_ptr_op(cp, OP_NE, NULL);
|
|
tt_int_op(sz, OP_LE, 4096);
|
|
tt_int_op(sz, OP_LE, 4096);
|
|
|
|
|
|
- buf_pullup(buf, 12500, 0);
|
|
|
|
|
|
+ buf_pullup(buf, 12500);
|
|
assert_buf_ok(buf);
|
|
assert_buf_ok(buf);
|
|
buf_get_first_chunk_data(buf, &cp, &sz);
|
|
buf_get_first_chunk_data(buf, &cp, &sz);
|
|
tt_ptr_op(cp, OP_NE, NULL);
|
|
tt_ptr_op(cp, OP_NE, NULL);
|
|
@@ -286,7 +286,7 @@ test_buffer_pullup(void *arg)
|
|
write_to_buf(stuff, 4000, buf);
|
|
write_to_buf(stuff, 4000, buf);
|
|
write_to_buf(stuff+4000, 4000, buf);
|
|
write_to_buf(stuff+4000, 4000, buf);
|
|
fetch_from_buf(tmp, 100, buf); /* dump 100 bytes from first chunk */
|
|
fetch_from_buf(tmp, 100, buf); /* dump 100 bytes from first chunk */
|
|
- buf_pullup(buf, 16000, 0); /* Way too much. */
|
|
|
|
|
|
+ buf_pullup(buf, 16000); /* Way too much. */
|
|
assert_buf_ok(buf);
|
|
assert_buf_ok(buf);
|
|
buf_get_first_chunk_data(buf, &cp, &sz);
|
|
buf_get_first_chunk_data(buf, &cp, &sz);
|
|
tt_ptr_op(cp, OP_NE, NULL);
|
|
tt_ptr_op(cp, OP_NE, NULL);
|