aboutsummaryrefslogtreecommitdiff
path: root/gdb/unittests/rsp-low-selftests.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2023-02-08 15:36:23 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2023-02-08 15:46:02 -0500
commitc583a2520616c2736cffc389c89a48b159366e6c (patch)
treeb4925f26506fcee96c16119431c01760f05db95d /gdb/unittests/rsp-low-selftests.c
parentca7f92c2f15b86b09c4a8ad14806bef666308d31 (diff)
downloadgdb-users/simark/clang-format.zip
gdb-users/simark/clang-format.tar.gz
gdb-users/simark/clang-format.tar.bz2
Run clang-format.shusers/simark/clang-format
Change-Id: Ia948cc26d534b0dd02702244d52434b1a2093968
Diffstat (limited to 'gdb/unittests/rsp-low-selftests.c')
-rw-r--r--gdb/unittests/rsp-low-selftests.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/gdb/unittests/rsp-low-selftests.c b/gdb/unittests/rsp-low-selftests.c
index 6e0c90e..5a98525 100644
--- a/gdb/unittests/rsp-low-selftests.c
+++ b/gdb/unittests/rsp-low-selftests.c
@@ -21,12 +21,15 @@
#include "gdbsupport/selftest.h"
#include "gdbsupport/rsp-low.h"
-namespace selftests {
-namespace rsp_low {
+namespace selftests
+{
+namespace rsp_low
+{
/* Test the variant of hex2bin that returns a byte_vector. */
-static void test_hex2bin_byte_vector ()
+static void
+test_hex2bin_byte_vector ()
{
gdb::byte_vector bv;
@@ -48,7 +51,8 @@ static void test_hex2bin_byte_vector ()
SELF_CHECK (bv[1] == 0x23);
}
-static void test_hex2str ()
+static void
+test_hex2str ()
{
SELF_CHECK (hex2str ("666f6f") == "foo");
SELF_CHECK (hex2str ("666f6fa") == "foo");
@@ -62,11 +66,11 @@ static void test_hex2str ()
} /* namespace selftests */
void _initialize_rsp_low_selftests ();
+
void
_initialize_rsp_low_selftests ()
{
selftests::register_test ("hex2bin_byte_vector",
selftests::rsp_low::test_hex2bin_byte_vector);
- selftests::register_test ("hex2str",
- selftests::rsp_low::test_hex2str);
+ selftests::register_test ("hex2str", selftests::rsp_low::test_hex2str);
}