mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-13 15:50:59 +00:00
[Unit-tests] Fix switch_xml leak and build.
This commit is contained in:
parent
4c1a47d5d1
commit
cdaebdce9d
@ -34,7 +34,7 @@
|
||||
|
||||
#include <test/switch_test.h>
|
||||
|
||||
FST_MINCORE_BEGIN()
|
||||
FST_MINCORE_BEGIN("./conf")
|
||||
{
|
||||
FST_SUITE_BEGIN(switch_xml)
|
||||
{
|
||||
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user