diff options
Diffstat (limited to 'gdb/unittests/intrusive_list-selftests.c')
-rw-r--r-- | gdb/unittests/intrusive_list-selftests.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/gdb/unittests/intrusive_list-selftests.c b/gdb/unittests/intrusive_list-selftests.c index fbd89ed..2dd1298 100644 --- a/gdb/unittests/intrusive_list-selftests.c +++ b/gdb/unittests/intrusive_list-selftests.c @@ -1,5 +1,5 @@ -/* Tests fpr intrusive double linked list for GDB, the GNU debugger. - Copyright (C) 2021-2024 Free Software Foundation, Inc. +/* Tests for intrusive double linked list for GDB, the GNU debugger. + Copyright (C) 2021-2025 Free Software Foundation, Inc. This file is part of GDB. @@ -20,7 +20,7 @@ #include "gdbsupport/intrusive_list.h" #include "gdbsupport/owning_intrusive_list.h" #include "gdbsupport/selftest.h" -#include <unordered_set> +#include "gdbsupport/unordered_set.h" /* Count of how many item_with_base or item_with_member objects are currently alive. */ @@ -717,7 +717,7 @@ struct intrusive_list_test item_type a ("a"), b ("b"), c ("c"); ListType list; std::vector<const item_type *> expected; - std::unordered_set<const item_type *> disposer_seen; + gdb::unordered_set<const item_type *> disposer_seen; int disposer_calls = 0; list.push_back (a); @@ -1648,10 +1648,7 @@ test_intrusive_list () test_node_is_linked (); } -void _initialize_intrusive_list_selftests (); - -void -_initialize_intrusive_list_selftests () +INIT_GDB_FILE (intrusive_list_selftests) { selftests::register_test ("intrusive_list", test_intrusive_list); } |