]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdbsupport/selftest.h
Always use std::function for self-tests
authorTom Tromey <tromey@adacore.com>
Thu, 23 Sep 2021 19:09:48 +0000 (13:09 -0600)
committerTom Tromey <tromey@adacore.com>
Tue, 19 Oct 2021 18:58:50 +0000 (12:58 -0600)
commitd7c68312bdeca52e242326e5cf155e0aa63268bb
tree8daa0e71c0de29b9bee9f0a8376dc431b65af861
parent4a2f674a688df474639066922f4ce70ce97b30d2
Always use std::function for self-tests

Now that there is a register_test variant that accepts std::function,
it seems to me that the 'selftest' struct and accompanying code is
obsolete -- simply always using std::function is simpler.  This patch
implements this idea.
gdbsupport/selftest.cc
gdbsupport/selftest.h