gdb: add back declarations for _initialize functions
[deliverable/binutils-gdb.git] / gdb / unittests / scoped_restore-selftests.c
index e97d6225c4285583aa9e4802768d3cb445d60e69..d989678fbf830e501aed8036ff93dfb2460075b7 100644 (file)
@@ -1,6 +1,6 @@
 /* Self tests for scoped_restore for GDB, the GNU debugger.
 
-   Copyright (C) 2017 Free Software Foundation, Inc.
+   Copyright (C) 2017-2020 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -18,8 +18,8 @@
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
 #include "defs.h"
-#include "selftest.h"
-#include "common/scoped_restore.h"
+#include "gdbsupport/selftest.h"
+#include "gdbsupport/scoped_restore.h"
 
 namespace selftests {
 namespace scoped_restore_tests {
@@ -103,8 +103,10 @@ run_tests ()
 } /* namespace scoped_restore_tests */
 } /* namespace selftests */
 
+void _initialize_scoped_restore_selftests ();
 void
 _initialize_scoped_restore_selftests ()
 {
-  register_self_test (selftests::scoped_restore_tests::run_tests);
+  selftests::register_test ("scoped_restore",
+                           selftests::scoped_restore_tests::run_tests);
 }
This page took 0.024973 seconds and 4 git commands to generate.