diff options
author | Tom de Vries <tdevries@suse.de> | 2021-09-21 00:41:26 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2021-09-21 00:41:26 +0200 |
commit | c45a683f8f9195bf7cc53bc645a20092c7155629 (patch) | |
tree | 93e96b2d5fbccefbef3314c948b5db93da1be70b /gdb/unittests | |
parent | 6f265beb28a7465c9e75fdb169d15a87f9a3a5d6 (diff) | |
download | gdb-c45a683f8f9195bf7cc53bc645a20092c7155629.zip gdb-c45a683f8f9195bf7cc53bc645a20092c7155629.tar.gz gdb-c45a683f8f9195bf7cc53bc645a20092c7155629.tar.bz2 |
[gdb] Change register_test to use std::function arg
Change register_test to use std::function arg, such that we can do:
...
register_test (test_name, [=] () { SELF_CHECK (...); });
...
Tested on x86_64-linux.
Diffstat (limited to 'gdb/unittests')
-rw-r--r-- | gdb/unittests/intrusive_list-selftests.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/unittests/intrusive_list-selftests.c b/gdb/unittests/intrusive_list-selftests.c index 8b2b2d1..1b38ac3 100644 --- a/gdb/unittests/intrusive_list-selftests.c +++ b/gdb/unittests/intrusive_list-selftests.c @@ -754,7 +754,7 @@ struct intrusive_list_test template <typename ListType> static void -test_intrusive_list () +test_intrusive_list_1 () { intrusive_list_test<ListType> tests; @@ -804,8 +804,8 @@ test_node_is_linked () static void test_intrusive_list () { - test_intrusive_list<item_with_base_list> (); - test_intrusive_list<item_with_member_list> (); + test_intrusive_list_1<item_with_base_list> (); + test_intrusive_list_1<item_with_member_list> (); test_node_is_linked (); } |