Skip to content

Commit 68fec39

Browse files
committed
test
1 parent 55dc1d6 commit 68fec39

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/validation.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1189,7 +1189,8 @@ lyd_validate_minmax(const struct lyd_node *first, const struct lyd_node *parent,
11891189
if (min) {
11901190
char suffix_path[256];
11911191
if (parent == NULL) {
1192-
snprintf(suffix_path, sizeof(suffix_path), "/schema:%s", snode->name);
1192+
/* Real world this shouldn't happen, but test cases there may be no parent */
1193+
snprintf(suffix_path, sizeof(suffix_path), "/%s:%s", snode->module->name, snode->name);
11931194
} else {
11941195
snprintf(suffix_path, sizeof(suffix_path), "/%s", snode->name);
11951196
}

tests/utests/node/list.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1051,7 +1051,7 @@ test_xml(void **state)
10511051
"</user>";
10521052
CHECK_PARSE_LYD_PARAM(data, LYD_XML, 0, LYD_VALIDATE_PRESENT, LY_EVALID, tree);
10531053
assert_null(tree);
1054-
CHECK_LOG_CTX("Too few \"user\" instances.", "/user", 0);
1054+
CHECK_LOG_CTX("Too few \"user\" instances.", "/T2:user", 0);
10551055

10561056
data =
10571057
"<user xmlns=\"urn:tests:T2\">"

0 commit comments

Comments
 (0)