mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-25 01:57:20 +03:00
Unify buffered writer naming
This commit is contained in:
parent
9a60cf54ec
commit
6b6b4709b3
6 changed files with 21 additions and 21 deletions
|
|
@ -20,8 +20,8 @@ TEST_BEGIN(test_buf_write) {
|
|||
size_t n_unit, remain, i;
|
||||
ssize_t unit;
|
||||
uint64_t arg = 4; /* Starting value of random argument. */
|
||||
buf_writer_arg_t test_buf_arg =
|
||||
{test_write_cb, &arg, test_buf, TEST_BUF_SIZE - 1, 0};
|
||||
buf_write_arg_t test_buf_arg = {test_write_cb, &arg, test_buf,
|
||||
TEST_BUF_SIZE - 1, 0};
|
||||
|
||||
memset(s, 'a', UNIT_MAX);
|
||||
arg_store = arg;
|
||||
|
|
@ -33,7 +33,7 @@ TEST_BEGIN(test_buf_write) {
|
|||
remain = 0;
|
||||
for (i = 1; i <= n_unit; ++i) {
|
||||
arg = prng_lg_range_u64(&arg, 64);
|
||||
buffered_write_cb(&test_buf_arg, s);
|
||||
buf_write_cb(&test_buf_arg, s);
|
||||
remain += unit;
|
||||
if (remain > test_buf_arg.buf_size) {
|
||||
/* Flushes should have happened. */
|
||||
|
|
@ -49,7 +49,7 @@ TEST_BEGIN(test_buf_write) {
|
|||
"Incorrect length after writing %zu strings"
|
||||
" of length %zu", i, unit);
|
||||
}
|
||||
buf_writer_flush(&test_buf_arg);
|
||||
buf_write_flush(&test_buf_arg);
|
||||
assert_zu_eq(test_write_len, n_unit * unit,
|
||||
"Incorrect length after flushing at the end of"
|
||||
" writing %zu strings of length %zu", n_unit, unit);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue