root/lib/common/tests/xml/crm_xml_init_test.c

/* [previous][next][first][last][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. buffer_scheme_test
  2. schemas_initialized

   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 
  12 #include <crm/common/unittest_internal.h>
  13 
  14 #include "crmcommon_private.h"
  15 
  16 static void
  17 buffer_scheme_test(void **state)
     /* [previous][next][first][last][top][bottom][index][help] */
  18 {
  19     assert_int_equal(XML_BUFFER_ALLOC_DOUBLEIT, xmlGetBufferAllocationScheme());
  20 }
  21 
  22 static void
  23 schemas_initialized(void **state)
     /* [previous][next][first][last][top][bottom][index][help] */
  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()
  29 PCMK__UNIT_TEST(pcmk__xml_test_setup_group, pcmk__xml_test_teardown_group,
  30                 cmocka_unit_test(buffer_scheme_test),
  31                 cmocka_unit_test(schemas_initialized))

/* [previous][next][first][last][top][bottom][index][help] */