118 b->size = b->capacity; |
118 b->size = b->capacity; |
119 |
119 |
120 UCX_TEST_BEGIN |
120 UCX_TEST_BEGIN |
121 |
121 |
122 char rb[16]; |
122 char rb[16]; |
123 for (int i = 0 ; i < 16 ; i++) { |
123 for (size_t i = 0 ; i < 16 ; i++) { |
124 UCX_TEST_ASSERT(b->pos == i, "pos wrong during read loop"); |
124 UCX_TEST_ASSERT(b->pos == i, "pos wrong during read loop"); |
125 UCX_TEST_ASSERT(!ucx_buffer_eof(b), |
125 UCX_TEST_ASSERT(!ucx_buffer_eof(b), |
126 "EOF shall not be set during read loop"); |
126 "EOF shall not be set during read loop"); |
127 rb[i] = ucx_buffer_getc(b); |
127 rb[i] = ucx_buffer_getc(b); |
128 } |
128 } |