Add unit test for xml_escape_text
authorSimon Marchi <simon.marchi@ericsson.com>
Sat, 16 Sep 2017 12:16:27 +0000 (14:16 +0200)
committerSimon Marchi <simon.marchi@ericsson.com>
Sat, 16 Sep 2017 12:16:28 +0000 (14:16 +0200)
commitc3d7b541fa920e6ecb0f06ffe1e0e3f070fa295d
treefea12153b4ae2898437725d9ff431aea0f726297
parent1526853e34c063bef25bd7d0eb15c1449c28e999
Add unit test for xml_escape_text

The following patch modifies xml_escape_text, so I took the opportunity
to write a unit test for it.

gdb/ChangeLog:

* Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
(SUBDIR_UNITTESTS_OBS): Add new object file.
* unittests/xml-utils-selftests.c: New file.
gdb/ChangeLog
gdb/Makefile.in
gdb/unittests/xml-utils-selftests.c [new file with mode: 0644]