Unit tests for strncmp_iw_with_mode
authorKeith Seitz <keiths@redhat.com>
Fri, 25 Feb 2022 00:42:22 +0000 (16:42 -0800)
committerKeith Seitz <keiths@redhat.com>
Fri, 25 Feb 2022 00:42:22 +0000 (16:42 -0800)
commitb05752c223b79f3b42fb2a506377fc12adaf8aeb
tree2d7f2b4134fe93b98cfb81ffca669a569d58eb14
parent2f2c677e670063360cbb3fb1b32bd6cf36bcf03a
Unit tests for strncmp_iw_with_mode

This patch attempts to make a start at adding unit tests for
strncmp_iw_with_mode.  While there is quite a bit of testing
of this function in other tests, these are currently end-to-end
tests.

This patch attempts to cover the basics of string matching, white
space, C++ ABI tags, and several other topics. However, one area
that is ostensibly missing is testing the `match_for_lcd' feature.
This is otherwise tested as part of our end-to-end DejaGNU-based
testing.
gdb/utils.c