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/scoped_fd-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/scoped_fd-selftests.c')
-rw-r--r-- | gdb/unittests/scoped_fd-selftests.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/gdb/unittests/scoped_fd-selftests.c b/gdb/unittests/scoped_fd-selftests.c index 409f2be..cfc54da 100644 --- a/gdb/unittests/scoped_fd-selftests.c +++ b/gdb/unittests/scoped_fd-selftests.c @@ -24,8 +24,10 @@ #include "config.h" #include "gdbsupport/selftest.h" -namespace selftests { -namespace scoped_fd { +namespace selftests +{ +namespace scoped_fd +{ /* Test that the file descriptor is closed. */ static void @@ -75,7 +77,7 @@ test_to_file () SELF_CHECK (sfd.get () >= 0); unlink (filename); - + gdb_file_up file = sfd.to_file ("rw"); SELF_CHECK (file != nullptr); SELF_CHECK (sfd.get () == -1); @@ -94,9 +96,9 @@ run_tests () } /* namespace selftests */ void _initialize_scoped_fd_selftests (); + void _initialize_scoped_fd_selftests () { - selftests::register_test ("scoped_fd", - selftests::scoped_fd::run_tests); + selftests::register_test ("scoped_fd", selftests::scoped_fd::run_tests); } |