Skip to content

Commit

Permalink
[Unit-tests] Fix switch_xml leak and build.
Browse files Browse the repository at this point in the history
  • Loading branch information
andywolk committed Dec 31, 2019
1 parent 4c1a47d commit cdaebdc
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/unit/switch_xml.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

#include <test/switch_test.h>

FST_MINCORE_BEGIN()
FST_MINCORE_BEGIN("./conf")
{
FST_SUITE_BEGIN(switch_xml)
{
Expand Down Expand Up @@ -62,9 +62,8 @@ FST_MINCORE_BEGIN()
xml = switch_xml_parse_str_dynamic((char *)text, SWITCH_TRUE);
fst_requires(xml);
fst_check((xml->flags & SWITCH_XML_CDATA) == 0);
xml = xml->child;
fst_check_string_equals(xml->name, "tag");
fst_check(xml->flags & SWITCH_XML_CDATA);
fst_check_string_equals(xml->child->name, "tag");
fst_check(xml->child->flags & SWITCH_XML_CDATA);
switch_xml_free(xml);
}
FST_TEST_END()
Expand Down

0 comments on commit cdaebdc

Please sign in to comment.