diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2023-02-08 15:36:23 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2023-02-08 15:46:02 -0500 |
commit | c583a2520616c2736cffc389c89a48b159366e6c (patch) | |
tree | b4925f26506fcee96c16119431c01760f05db95d /gdb/unittests/ui-file-selftests.c | |
parent | ca7f92c2f15b86b09c4a8ad14806bef666308d31 (diff) | |
download | binutils-users/simark/clang-format.zip binutils-users/simark/clang-format.tar.gz binutils-users/simark/clang-format.tar.bz2 |
Run clang-format.shusers/simark/clang-format
Change-Id: Ia948cc26d534b0dd02702244d52434b1a2093968
Diffstat (limited to 'gdb/unittests/ui-file-selftests.c')
-rw-r--r-- | gdb/unittests/ui-file-selftests.c | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/gdb/unittests/ui-file-selftests.c b/gdb/unittests/ui-file-selftests.c index 4e5a471..9078cd8 100644 --- a/gdb/unittests/ui-file-selftests.c +++ b/gdb/unittests/ui-file-selftests.c @@ -21,8 +21,10 @@ #include "gdbsupport/selftest.h" #include "ui-file.h" -namespace selftests { -namespace file { +namespace selftests +{ +namespace file +{ static void check_one (const char *str, int quoter, const char *result) @@ -35,28 +37,24 @@ check_one (const char *str, int quoter, const char *result) static void run_tests () { - check_one ("basic stuff: \\", '\\', - "basic stuff: \\\\"); - check_one ("more basic stuff: \\Q", 'Q', - "more basic stuff: \\\\\\Q"); - check_one ("more basic stuff: \\Q", '\0', - "more basic stuff: \\Q"); + check_one ("basic stuff: \\", '\\', "basic stuff: \\\\"); + check_one ("more basic stuff: \\Q", 'Q', "more basic stuff: \\\\\\Q"); + check_one ("more basic stuff: \\Q", '\0', "more basic stuff: \\Q"); check_one ("weird stuff: \x1f\x90\n\b\t\f\r\033\007", '\\', "weird stuff: \\037\\220\\n\\b\\t\\f\\r\\e\\a"); scoped_restore save_7 = make_scoped_restore (&sevenbit_strings, true); - check_one ("more weird stuff: \xa5", '\\', - "more weird stuff: \\245"); + check_one ("more weird stuff: \xa5", '\\', "more weird stuff: \\245"); } } /* namespace file*/ } /* namespace selftests */ void _initialize_ui_file_selftest (); + void _initialize_ui_file_selftest () { - selftests::register_test ("ui-file", - selftests::file::run_tests); + selftests::register_test ("ui-file", selftests::file::run_tests); } |