68 free(test); |
68 free(test); |
69 ucx_buffer_free(b); |
69 ucx_buffer_free(b); |
70 } |
70 } |
71 |
71 |
72 UCX_TEST(test_ucx_buffer_eof) { |
72 UCX_TEST(test_ucx_buffer_eof) { |
73 char *test = "0123456789ABCDEF"; |
73 char *test = (char*)"0123456789ABCDEF"; |
74 UcxBuffer *b = ucx_buffer_new(test, 16, UCX_BUFFER_DEFAULT); |
74 UcxBuffer *b = ucx_buffer_new(test, 16, UCX_BUFFER_DEFAULT); |
75 UCX_TEST_BEGIN |
75 UCX_TEST_BEGIN |
76 b->pos = 9; b->size = 10; |
76 b->pos = 9; b->size = 10; |
77 UCX_TEST_ASSERT(!ucx_buffer_eof(b), "false positive"); |
77 UCX_TEST_ASSERT(!ucx_buffer_eof(b), "false positive"); |
78 b->pos = 10; b->size = 10; |
78 b->pos = 10; b->size = 10; |