Skip to content

Commit cdaebdc

Browse files
committed
[Unit-tests] Fix switch_xml leak and build.
1 parent 4c1a47d commit cdaebdc

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Diff for: tests/unit/switch_xml.c

+3-4
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
#include <test/switch_test.h>
3636

37-
FST_MINCORE_BEGIN()
37+
FST_MINCORE_BEGIN("./conf")
3838
{
3939
FST_SUITE_BEGIN(switch_xml)
4040
{
@@ -62,9 +62,8 @@ FST_MINCORE_BEGIN()
6262
xml = switch_xml_parse_str_dynamic((char *)text, SWITCH_TRUE);
6363
fst_requires(xml);
6464
fst_check((xml->flags & SWITCH_XML_CDATA) == 0);
65-
xml = xml->child;
66-
fst_check_string_equals(xml->name, "tag");
67-
fst_check(xml->flags & SWITCH_XML_CDATA);
65+
fst_check_string_equals(xml->child->name, "tag");
66+
fst_check(xml->child->flags & SWITCH_XML_CDATA);
6867
switch_xml_free(xml);
6968
}
7069
FST_TEST_END()

0 commit comments

Comments
 (0)