Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
bradh352 committed Feb 15, 2025
1 parent 2db1fa4 commit 57d15b7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/utests/schema/test_schema.c
Original file line number Diff line number Diff line change
Expand Up @@ -1985,12 +1985,19 @@ test_lysc_backlinks(void **state)
for (i=0; i<sizeof(tests)/sizeof(*tests); i++) {
const struct lysc_node *node = NULL;
struct ly_set *set = NULL;
LY_ERR ret;

if (tests[i].match_path) {
assert_non_null(lys_find_path(UTEST_LYCTX, NULL, tests[i].match_path, 0));
}

assert_int_equal(lys_find_backlinks(UTEST_LYCTX, node, tests[i].match_ancestors, &set), LY_SUCCESS);
ret = lys_find_backlinks(UTEST_LYCTX, node, tests[i].match_ancestors, &set);
if (ret != LY_SUCCESS) {
fail_msg("failed to find backlinks for %s%s: %s",
tests[i].match_path == NULL?"/":tests[i].match_path,
tests[i].match_ancestors?" (including ancestors)":"",
ly_strerr(ret));
}

/* XXX: Match paths */
ly_set_free(set, NULL);
Expand Down

0 comments on commit 57d15b7

Please sign in to comment.