diff --git a/include/ircd/util/test.h b/include/ircd/util/test.h index e531cdfd6..8631f1c55 100644 --- a/include/ircd/util/test.h +++ b/include/ircd/util/test.h @@ -11,8 +11,7 @@ #pragma once #define HAVE_IRCD_UTIL_TEST_H -namespace ircd { -inline namespace util +namespace ircd { - void test(); -}} + extern "C" bool ircd_test(const string_view & = {}); +} diff --git a/modules/console.cc b/modules/console.cc index a5e6e1d73..bdf012a0b 100644 --- a/modules/console.cc +++ b/modules/console.cc @@ -416,10 +416,17 @@ console_cmd__exit(opt &out, const string_view &line) return false; } +// +// Test trigger stub +// bool console_cmd__test(opt &out, const string_view &line) { - ircd::test(); // Test trigger stub + const bool result + { + ircd_test(line) + }; + return true; }