Merging upstream version 3.12.2.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
6375ddbe5b
commit
580fa3f55c
66 changed files with 4041 additions and 2142 deletions
|
@ -78,7 +78,7 @@ test_module(void **state)
|
|||
str = "module test {namespace urn:test; prefix t;"
|
||||
"feature f1;feature f2 {if-feature f1;}}";
|
||||
assert_int_equal(LY_SUCCESS, ly_in_new_memory(str, &in));
|
||||
assert_int_equal(LY_SUCCESS, lys_parse_in(UTEST_LYCTX, in, LYS_IN_YANG, NULL, NULL, &unres.creating, &mod));
|
||||
assert_int_equal(LY_SUCCESS, lys_parse_in(UTEST_LYCTX, in, LYS_IN_YANG, NULL, &unres.creating, &mod));
|
||||
lys_unres_glob_erase(&unres);
|
||||
ly_in_free(in, 0);
|
||||
assert_int_equal(0, mod->implemented);
|
||||
|
@ -104,7 +104,7 @@ test_module(void **state)
|
|||
/* submodules cannot be compiled directly */
|
||||
str = "submodule test {belongs-to xxx {prefix x;}}";
|
||||
assert_int_equal(LY_SUCCESS, ly_in_new_memory(str, &in));
|
||||
assert_int_equal(LY_EINVAL, lys_parse_in(UTEST_LYCTX, in, LYS_IN_YANG, NULL, NULL, &unres.creating, NULL));
|
||||
assert_int_equal(LY_EINVAL, lys_parse_in(UTEST_LYCTX, in, LYS_IN_YANG, NULL, &unres.creating, NULL));
|
||||
lys_unres_glob_erase(&unres);
|
||||
ly_in_free(in, 0);
|
||||
CHECK_LOG_CTX("Input data contains submodule which cannot be parsed directly without its main module.", NULL, 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue