/* Self tests for memory-map for GDB, the GNU debugger.
- Copyright (C) 2017 Free Software Foundation, Inc.
+ Copyright (C) 2017-2019 Free Software Foundation, Inc.
This file is part of GDB.
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "defs.h"
-#include "selftest.h"
+#include "gdbsupport/selftest.h"
#include "memory-map.h"
+#if defined(HAVE_LIBEXPAT)
+
namespace selftests {
namespace memory_map_tests {
} /* namespace memory_map_tests */
} /* namespace selftests */
+#endif /* HAVE_LIBEXPAT */
+
void
_initialize_memory_map_selftests ()
{
+#if defined(HAVE_LIBEXPAT)
selftests::register_test
("parse_memory_map",
selftests::memory_map_tests::parse_memory_map_tests);
+#endif
}