pacemaker  2.1.9-49aab99839
Scalable High-Availability cluster resource manager
crm_xml_init_test.c
Go to the documentation of this file.
1 /*
2  * Copyright 2023-2024 the Pacemaker project contributors
3  *
4  * The version control history for this file may have further details.
5  *
6  * This source code is licensed under the GNU General Public License version 2
7  * or later (GPLv2+) WITHOUT ANY WARRANTY.
8  */
9 
10 #include <crm_internal.h>
11 
13 
14 #include "crmcommon_private.h"
15 
16 static void
17 buffer_scheme_test(void **state)
18 {
19  assert_int_equal(XML_BUFFER_ALLOC_DOUBLEIT, xmlGetBufferAllocationScheme());
20 }
21 
22 static void
23 schemas_initialized(void **state)
24 {
25  assert_non_null(pcmk__find_x_0_schema());
26 }
27 
28 // The group setup/teardown functions call crm_xml_init()/crm_xml_cleanup()
30  cmocka_unit_test(buffer_scheme_test),
31  cmocka_unit_test(schemas_initialized))
#define PCMK__UNIT_TEST(group_setup, group_teardown,...)
G_GNUC_INTERNAL GList * pcmk__find_x_0_schema(void)
Definition: schemas.c:111
int pcmk__xml_test_setup_group(void **state)
Definition: unittest.c:85
int pcmk__xml_test_teardown_group(void **state)
Definition: unittest.c:104