[gdb/cli] Add gnu-source-highlight selftest
authorTom de Vries <tdevries@suse.de>
Tue, 24 Oct 2023 12:31:34 +0000 (14:31 +0200)
committerTom de Vries <tdevries@suse.de>
Tue, 24 Oct 2023 12:31:34 +0000 (14:31 +0200)
commitcda750802aef3beea582f0f3cad824be491abb4d
tree31fa311452ac6d99460fab2290da66edafe8f0a6
parent07a9e709114151550177c45dbdc04641dc547189
[gdb/cli] Add gnu-source-highlight selftest

Add a selftest gnu-source-highlight:
...
$ gdb -q -batch -ex "maint selftest gnu-source-highlight"
Running selftest gnu-source-highlight.
Ran 1 unit tests, 0 failed
...

Tested on x86_64-linux.
gdb/source-cache.c