Skip to content

Commit add202c

Browse files
michalvaskomanoe
authored andcommitted
perf UPDATE remove obsolete bin test
1 parent acf092d commit add202c

1 file changed

Lines changed: 0 additions & 37 deletions

File tree

tests/perf/perf.c

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -362,42 +362,6 @@ test_create_new_text(struct test_state *state, struct timespec *ts_start, struct
362362
return LY_SUCCESS;
363363
}
364364

365-
static LY_ERR
366-
test_create_new_bin(struct test_state *state, struct timespec *ts_start, struct timespec *ts_end, uint32_t *size)
367-
{
368-
LY_ERR r;
369-
struct lyd_node *data = NULL;
370-
uint32_t i;
371-
char k_val[32], k2_val[32], l_val[32];
372-
struct lyd_node *list;
373-
374-
*size = 0;
375-
TEST_START(ts_start);
376-
377-
if ((r = lyd_new_inner(NULL, state->mod, "cont", 0, &data))) {
378-
return r;
379-
}
380-
381-
for (i = 0; i < state->count; ++i) {
382-
sprintf(k_val, "%" PRIu32, i);
383-
sprintf(k2_val, "str%" PRIu32, i);
384-
sprintf(l_val, "l%" PRIu32, i);
385-
386-
if ((r = lyd_new_list(data, NULL, "lst", 0, &list, &i, k2_val))) {
387-
return r;
388-
}
389-
if ((r = lyd_new_term(list, NULL, "l", l_val, 0, NULL))) {
390-
return r;
391-
}
392-
}
393-
394-
TEST_END(ts_end);
395-
396-
lyd_free_siblings(data);
397-
398-
return LY_SUCCESS;
399-
}
400-
401365
static LY_ERR
402366
test_create_path(struct test_state *state, struct timespec *ts_start, struct timespec *ts_end, uint32_t *size)
403367
{
@@ -854,7 +818,6 @@ test_merge_no_same_destruct(struct test_state *state, struct timespec *ts_start,
854818

855819
struct test tests[] = {
856820
{"create new text", setup_basic, test_create_new_text},
857-
{"create new bin", setup_basic, test_create_new_bin},
858821
{"create path", setup_basic, test_create_path},
859822
{"validate", setup_data_single_tree, test_validate},
860823
{"parse xml mem validate", setup_data_single_tree, test_parse_xml_mem_validate},

0 commit comments

Comments
 (0)