/* Self tests for string_view for GDB, the GNU debugger.
- Copyright (C) 2018-2019 Free Software Foundation, Inc.
+ Copyright (C) 2018-2020 Free Software Foundation, Inc.
This file is part of GDB.
#define GNULIB_NAMESPACE gnulib
#include "defs.h"
-#include "common/selftest.h"
-#include "common/gdb_string_view.h"
+#include "gdbsupport/selftest.h"
+#include "gdbsupport/gdb_string_view.h"
/* Used by the included .cc files below. Included here because the
included test files are wrapped in a namespace. */
} /* namespace string_view */
} /* namespace selftests */
+#endif /* __cplusplus < 201703L */
+
+void _initialize_string_view_selftests ();
void
_initialize_string_view_selftests ()
{
+#if defined(GDB_STRING_VIEW)
selftests::register_test ("string_view", selftests::string_view::run_tests);
+#endif
}
-
-#endif /* __cplusplus < 201703L */