X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fbinutils-gdb.git;a=blobdiff_plain;f=gdbsupport%2Fselftest.h;fp=gdbsupport%2Fselftest.h;h=e0086132f7b97b29814892159fdc7a8551d61678;hp=1c47fe1448ba6a1f1667d08a89a9f5d1c4bd8056;hb=ece5bc8ac303ccf03dd066ce7e1cba3a12293e40;hpb=8118fd4346e353323cda683c5158f90efedf1002 diff --git a/gdbsupport/selftest.h b/gdbsupport/selftest.h index 1c47fe1448b..e0086132f7b 100644 --- a/gdbsupport/selftest.h +++ b/gdbsupport/selftest.h @@ -19,6 +19,8 @@ #ifndef COMMON_SELFTEST_H #define COMMON_SELFTEST_H +#include "gdbsupport/array-view.h" + /* A test is just a function that does some checks and throws an exception if something has gone wrong. */ @@ -47,10 +49,10 @@ extern void register_test (const std::string &name, /* Run all the self tests. This print a message describing the number of test and the number of failures. - If FILTER is not NULL and not empty, only tests with names containing FILTER - will be ran. */ + If FILTERS is not empty, only run tests with names containing one of the + element of FILTERS. */ -extern void run_tests (const char *filter); +extern void run_tests (gdb::array_view filters); /* Reset GDB or GDBserver's internal state. */ extern void reset ();