Add a self-test for cli-utils.c
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Mon, 21 May 2018 07:16:13 +0000 (09:16 +0200)
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Thu, 12 Jul 2018 21:10:56 +0000 (23:10 +0200)
commitbc7b042bcb22320ddc1b54d45b6a1d264dcbfbe6
tree915663c884b4a75629cced5528b32024f69c5f38
parent5759ebb3b35f4bff8aba7ba06e8b0eb88d9d0831
Add a self-test for cli-utils.c

tests added for:
* number_or_range_parser
  In particular, it tests the cur_tok when parsing is finished.

* parse_flags

* parse_flags_qcs

gdb/ChangeLog
2018-07-12  Philippe Waroquiers  <philippe.waroquiers@skynet.be>

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