gdbsupport/selftest: Allow lazy registration
authorLancelot SIX <lancelot.six@amd.com>
Tue, 22 Mar 2022 12:09:40 +0000 (08:09 -0400)
committerLancelot SIX <lancelot.six@amd.com>
Tue, 19 Apr 2022 08:12:42 +0000 (09:12 +0100)
commit9a0f7f634e8eb98a8b2ff48eb68f90fefed83ac1
tree16ae87ea721189c6704a192f9e0985b665aaaa41
parentc57207c15c4fa980263e6849d0e6472c33e647fc
gdbsupport/selftest: Allow lazy registration

This patch adds a way to delay the registration of tests until the
latest possible moment.  This is intended for situations where GDB needs
to be fully initialized in order to decide if a particular selftest can
be executed or not.

This mechanism will be used in the next patch.

Change-Id: I7f6b061f4c0a6832226c7080ab4e3a2523e1b0b0
gdbsupport/selftest.cc
gdbsupport/selftest.h