| 146:aa376dba1ba8 | 147:1aa598f36872 |
|---|---|
| 127 | 127 |
| 128 UCX_TEST_ASSERT(b->space[2] == 'a', "wrong content"); | 128 UCX_TEST_ASSERT(b->space[2] == 'a', "wrong content"); |
| 129 | 129 |
| 130 UCX_TEST_END | 130 UCX_TEST_END |
| 131 | 131 |
| 132 | 132 ucx_buffer_free(b); |
| 133 } | 133 } |
| 134 | 134 |
| 135 UCX_TEST(test_ucx_buffer_getc) { | 135 UCX_TEST(test_ucx_buffer_getc) { |
| 136 char *buffer = (char*) malloc(16); | 136 char *buffer = (char*) malloc(16); |
| 137 memset(buffer, 32, 8); | 137 memset(buffer, 32, 8); |
| 260 "buffer incorrect after three byte read"); | 260 "buffer incorrect after three byte read"); |
| 261 | 261 |
| 262 | 262 |
| 263 UCX_TEST_END | 263 UCX_TEST_END |
| 264 | 264 |
| 265 | 265 ucx_buffer_free(b); |
| 266 } | 266 } |
| 267 | 267 |
| 268 UCX_TEST(test_ucx_buffer_extract) { | 268 UCX_TEST(test_ucx_buffer_extract) { |
| 269 char *buffer = (char*) malloc(16); | 269 char *buffer = (char*) malloc(16); |
| 270 strcpy(buffer, "this is a test!"); | 270 strcpy(buffer, "this is a test!"); |