diff options
Diffstat (limited to 'gdb/unittests')
-rw-r--r-- | gdb/unittests/xml-utils-selftests.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gdb/unittests/xml-utils-selftests.c b/gdb/unittests/xml-utils-selftests.c index 21b506a..e4ab483 100644 --- a/gdb/unittests/xml-utils-selftests.c +++ b/gdb/unittests/xml-utils-selftests.c @@ -28,11 +28,9 @@ static void test_xml_escape_text () { const char *input = "<this isn't=\"xml\"> &"; const char *expected_output = "<this isn't="xml"> &"; - char *actual_output = xml_escape_text (input); + std::string actual_output = xml_escape_text (input); - SELF_CHECK (strcmp (actual_output, expected_output) == 0); - - xfree (actual_output); + SELF_CHECK (actual_output == expected_output); } } |