dbus/test/internals
Simon McVittie 54b56ab875 Use 'continue' keyword in preference to 'goto' where possible
In some more complicated loops, we do need to use 'goto' to exit from
an inner loop, or to jump to cleanup or an increment of an iterator
immediately before the next loop iteration. However, in these simple
cases, jumping to a label immediately before the 'while' keyword is
unnecessary: we can use an equivalent 'continue' statement for flow
control.

This makes it easier for maintainers to notice the loops where we are
doing something more complicated, which still use 'goto', and know
that they need to pay more attention in those cases.

Signed-off-by: Simon McVittie <smcv@collabora.com>
2022-11-29 18:50:06 +00:00
..
address.c tests: Move address test out of libdbus 2019-07-03 11:19:19 +01:00
assertions.c test: fix unused variable warnings 2022-05-19 17:57:31 +02:00
atomic.c Add a trivial sanity-check for the atomic primitives 2019-12-13 16:13:53 +01:00
dbus-auth-script.c Use 'continue' keyword in preference to 'goto' where possible 2022-11-29 18:50:06 +00:00
dbus-auth-script.h test: Move auth, credentials tests from libdbus-internal into test/ 2019-01-21 15:20:22 +00:00
dbus-auth-util.c Use 'continue' keyword in preference to 'goto' where possible 2022-11-29 18:50:06 +00:00
dbus-credentials-util.c test: Move auth, credentials tests from libdbus-internal into test/ 2019-01-21 15:20:22 +00:00
dbus-marshal-byteswap-util.c test: Move marshalling tests into test/ 2019-01-21 15:21:16 +00:00
dbus-marshal-recursive-util.c tests: Fix build warning "dereferencing type-punned pointer will break strict-aliasing rules" 2022-05-01 16:28:51 +00:00
dbus-marshal-recursive-util.h test: Move marshalling tests into test/ 2019-01-21 15:21:16 +00:00
dbus-marshal-validate-util.c test: Move marshalling tests into test/ 2019-01-21 15:21:16 +00:00
dbus-message-factory.c test: Move marshalling tests into test/ 2019-01-21 15:21:16 +00:00
dbus-message-factory.h test: Move dbus-message-factory and most of dbus-message-util into test/ 2019-01-21 15:20:39 +00:00
dbus-message-util.c Use 'continue' keyword in preference to 'goto' where possible 2022-11-29 18:50:06 +00:00
dbus-message-util.h test: Move dbus-message-factory and most of dbus-message-util into test/ 2019-01-21 15:20:39 +00:00
dbus-string-util.c _dbus_string_test(): Fix fatal build error caused by "-Wstrict-aliasing" 2022-04-21 13:55:38 +01:00
dbus-sysdeps-util.c test: Move sysdeps tests here 2019-01-21 15:22:05 +00:00
desktop-file.c desktop-file test: Free result on all code paths 2020-04-27 12:39:35 +00:00
hash.c dbus-hash: Add (AFL-2.1 OR GPL-2.0-or-later) AND TCL SPDX license identifier 2022-11-29 13:33:53 +00:00
marshal-recursive.c test: Move marshalling tests into test/ 2019-01-21 15:21:16 +00:00
mempool.c tests: Move mempool test out of libdbus 2019-07-03 11:19:47 +01:00
message-internals.c test: Move dbus-message-factory and most of dbus-message-util into test/ 2019-01-21 15:20:39 +00:00
misc-internals.c test: Use DBUS_TEST_SOCKET_DIR to create the test socket 2022-09-15 18:58:20 +00:00
misc-internals.h tests: Move mempool test out of libdbus 2019-07-03 11:19:47 +01:00
printf.c build: Define DBUS_INT64_MODIFIER, analogous to G_GINT64_MODIFIER 2022-04-19 18:27:47 +00:00
refs.c Increase the number of references/threads to be tested under Windows by default to detect errors 2018-12-14 11:04:21 +01:00
server-oom.c test: enable AF_UNIX server-oom test on !unix 2022-07-15 16:26:54 +01:00
sha.c Use 'continue' keyword in preference to 'goto' where possible 2022-11-29 18:50:06 +00:00
spawn-oom.c test-spawn-oom: Separate single spawn tests from oom related 2019-03-15 17:06:01 +00:00
sysdeps.c test: Add basic test coverage for _dbus_close_all and friends 2022-04-21 11:02:44 +01:00
syslog.c syslog test: Don't assert that we see plain LF newlines 2018-12-05 15:27:43 +01:00
variant.c tests: Call dbus_shutdown() 2018-08-02 17:14:39 +01:00