2121 CHECK_PARSE_LYD_PARAM(INPUT, LYD_XML, LYD_PARSE_ONLY | LYD_PARSE_STRICT, 0, LY_SUCCESS, OUT_NODE)
2222
2323#define CHECK_LYD_STRING (MODEL , TEXT ) \
24- CHECK_LYD_STRING_PARAM(MODEL, TEXT, LYD_XML, LYD_PRINT_WITHSIBLINGS | LYD_PRINT_SHRINK)
24+ CHECK_LYD_STRING_PARAM(MODEL, TEXT, LYD_XML, LYD_PRINT_SIBLINGS | LYD_PRINT_SHRINK)
2525
2626static void
2727check_print_parse (void * * state , const char * data_xml )
@@ -31,7 +31,7 @@ check_print_parse(void **state, const char *data_xml)
3131 char * lyb_out ;
3232
3333 CHECK_PARSE_LYD (data_xml , tree_1 );
34- assert_int_equal (lyd_print_mem (& lyb_out , tree_1 , LYD_LYB , LYD_PRINT_WITHSIBLINGS ), 0 );
34+ assert_int_equal (lyd_print_mem (& lyb_out , tree_1 , LYD_LYB , LYD_PRINT_SIBLINGS ), 0 );
3535 assert_int_equal (LY_SUCCESS , lyd_parse_data_mem (UTEST_LYCTX , lyb_out , LYD_LYB , LYD_PARSE_ONLY | LYD_PARSE_STRICT ,
3636 0 , & tree_2 ));
3737 assert_non_null (tree_2 );
@@ -469,7 +469,7 @@ test_opaq(void **state)
469469 ly_in_free (in , 0 );
470470 assert_int_equal (rc , LY_SUCCESS );
471471
472- assert_int_equal (lyd_print_mem (& xml_out , tree_1 , LYD_LYB , LYD_PRINT_WITHSIBLINGS ), 0 );
472+ assert_int_equal (lyd_print_mem (& xml_out , tree_1 , LYD_LYB , LYD_PRINT_SIBLINGS ), 0 );
473473
474474 ly_in_new_memory (xml_out , & in );
475475 rc = lyd_parse_op (UTEST_LYCTX , NULL , in , LYD_LYB , LYD_TYPE_RPC_YANG , LYD_PARSE_STRICT , & tree_2 , NULL );
@@ -2545,12 +2545,12 @@ test_shrink(void **state)
25452545 /* non-shrinked */
25462546 data_xml = "<cont xmlns=\"urn:mod\"/>" ;
25472547 CHECK_PARSE_LYD_PARAM (data_xml , LYD_XML , LYD_PARSE_STRICT , LYD_VALIDATE_PRESENT , LY_SUCCESS , tree1 );
2548- assert_int_equal (lyd_print_mem (& lyb_out , tree1 , LYD_LYB , LYD_PRINT_WITHSIBLINGS ), 0 );
2548+ assert_int_equal (lyd_print_mem (& lyb_out , tree1 , LYD_LYB , LYD_PRINT_SIBLINGS ), 0 );
25492549 assert_int_equal (LY_SUCCESS , lyd_parse_data_mem (UTEST_LYCTX , lyb_out , LYD_LYB , LYD_PARSE_ONLY | LYD_PARSE_STRICT ,
25502550 0 , & tree2 ));
25512551 assert_non_null (tree2 );
25522552
2553- assert_int_equal (LY_SUCCESS , lyd_print_mem (& str , tree2 , LYD_XML , LYD_PRINT_WITHSIBLINGS | LYD_PRINT_WD_ALL | LYD_PRINT_SHRINK ));
2553+ assert_int_equal (LY_SUCCESS , lyd_print_mem (& str , tree2 , LYD_XML , LYD_PRINT_SIBLINGS | LYD_PRINT_WD_ALL | LYD_PRINT_SHRINK ));
25542554 assert_non_null (str );
25552555 assert_string_equal (str , "<cont xmlns=\"urn:mod\"><l>25</l></cont>" );
25562556 free (str );
@@ -2562,7 +2562,7 @@ test_shrink(void **state)
25622562 /* shrinked */
25632563 data_xml = "<cont xmlns=\"urn:mod\"/>" ;
25642564 CHECK_PARSE_LYD_PARAM (data_xml , LYD_XML , LYD_PARSE_STRICT , LYD_VALIDATE_PRESENT , LY_SUCCESS , tree1 );
2565- assert_int_equal (lyd_print_mem (& lyb_out , tree1 , LYD_LYB , LYD_PRINT_WITHSIBLINGS | LYD_PRINT_SHRINK ), 0 );
2565+ assert_int_equal (lyd_print_mem (& lyb_out , tree1 , LYD_LYB , LYD_PRINT_SIBLINGS | LYD_PRINT_SHRINK ), 0 );
25662566 assert_int_equal (LY_SUCCESS , lyd_parse_data_mem (UTEST_LYCTX , lyb_out , LYD_LYB , LYD_PARSE_ONLY | LYD_PARSE_STRICT ,
25672567 0 , & tree2 ));
25682568 assert_null (tree2 );
0 commit comments