{
DBusString directory;
const char *tmp;
- dbus_bool_t ret = FALSE;
if (!_dbus_string_init (&directory))
return FALSE;
tmp = _dbus_get_tmpdir ();
if (tmp == NULL)
- goto out;
+ return FALSE;
if (!_dbus_string_append (&directory, tmp))
- goto out;
+ return FALSE;
if (!_dbus_string_append (&directory, "/dbus-reload-test-") ||
!_dbus_generate_random_ascii (&directory, 6, NULL))
- goto out;
+ {
+ return FALSE;
+ }
/* Do normal tests */
if (!init_service_reload_test (&directory))
/* Cleanup test directory */
if (!cleanup_service_reload_test (&directory))
- goto out;
-
- ret = TRUE;
+ return FALSE;
-out:
_dbus_string_free (&directory);
- return ret;
+
+ return TRUE;
}
#endif /* DBUS_ENABLE_EMBEDDED_TESTS */