mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-09 09:17:34 +00:00
[Unit-tests] Fix switch_xml test crash
This commit is contained in:
parent
c7480bc3fe
commit
6452fff8df
@ -109,13 +109,13 @@ FST_MINCORE_BEGIN()
|
||||
xml_string = switch_xml_toxml(xml, SWITCH_FALSE);
|
||||
fst_requires(xml_string);
|
||||
fst_check_string_equals(xml_string, "<xml>\n <tag>Voulez-Vous Parler Français</tag>\n</xml>\n");
|
||||
switch_xml_free(xml);
|
||||
free(xml_string);
|
||||
|
||||
xml_string = switch_xml_toxml_ex(xml, SWITCH_FALSE, SWITCH_FALSE);
|
||||
fst_requires(xml_string);
|
||||
fst_check_string_equals(xml_string, "<xml>\n <tag>Voulez-Vous Parler Français</tag>\n</xml>\n");
|
||||
switch_xml_free(xml);
|
||||
free(xml_string);
|
||||
}
|
||||
FST_TEST_END()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user