diff options
author | Philippe Waroquiers <philippe.waroquiers@skynet.be> | 2019-07-31 22:44:13 +0200 |
---|---|---|
committer | Philippe Waroquiers <philippe.waroquiers@skynet.be> | 2019-08-07 00:05:34 +0200 |
commit | d2834edcb67b9d9bd7163868fa0239948a2e57b7 (patch) | |
tree | 1117bcdfcb60eeb897f5a9711b27c207b29536a6 /bfd | |
parent | 590042fc45f857c981bee4e0c76f6b3b528a224e (diff) | |
download | gdb-d2834edcb67b9d9bd7163868fa0239948a2e57b7.zip gdb-d2834edcb67b9d9bd7163868fa0239948a2e57b7.tar.gz gdb-d2834edcb67b9d9bd7163868fa0239948a2e57b7.tar.bz2 |
Add a selftest that checks documentation invariants.
Several approaches were discussed (mail or irc) to verify the invariants of
the GDB help documentation : checking with apropos ., modifying add_cmd
to do the check and output a warning, implement maintenance check-doc.
A selftest was finally chosen as:
* this can be run on demand, including by users if they want
to check user defined commands.
* it does not interact with the normal behaviour of apropos, define,
python, ...
(such as output warnings when a user defines a command help that
does not respect the doc).
* when the selftest runs, it checks the user defined and python
defined commands currently defined.
gdb/ChangeLog
* unittests/help-doc-selftests.c: New file.
* Makefile.in: Add the new file.
Diffstat (limited to 'bfd')
0 files changed, 0 insertions, 0 deletions