gdb: add back declarations for _initialize functions
[deliverable/binutils-gdb.git] / gdb / unittests / environ-selftests.c
index 81a71ee01ede283ded8e3a6b3cf8229cde4345e7..55318605a3b88d00cdba5bd3614727f483535c55 100644 (file)
@@ -1,6 +1,6 @@
 /* Self tests for gdb_environ 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,9 +18,9 @@
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
 #include "defs.h"
-#include "selftest.h"
-#include "common/environ.h"
-#include "common/diagnostics.h"
+#include "gdbsupport/selftest.h"
+#include "gdbsupport/environ.h"
+#include "diagnostics.h"
 
 static const char gdb_selftest_env_var[] = "GDB_SELFTEST_ENVIRON";
 
@@ -298,8 +298,10 @@ run_tests ()
 } /* namespace gdb_environ */
 } /* namespace selftests */
 
+void _initialize_environ_selftests ();
 void
 _initialize_environ_selftests ()
 {
-  selftests::register_test (selftests::gdb_environ_tests::run_tests);
+  selftests::register_test ("gdb_environ",
+                           selftests::gdb_environ_tests::run_tests);
 }
This page took 0.026336 seconds and 4 git commands to generate.