diff options
author | Havoc Pennington <hp@redhat.com> | 2005-01-16 02:23:56 +0000 |
---|---|---|
committer | Havoc Pennington <hp@redhat.com> | 2005-01-16 02:23:56 +0000 |
commit | b3416423b1e3c17357833d896c1b7cd684660771 (patch) | |
tree | 9f8ae4a2d65337f6b668aca787eadb8342e05db2 /test | |
parent | 9c3d566e95c9080f6040c64531b0ccae22bd5d74 (diff) |
2005-01-15 Havoc Pennington <hp@redhat.com>
* test/glib/test-profile.c (with_bus_server_filter): fix crash
* dbus/dbus-marshal-basic.c (_dbus_unpack_uint32): inline as macro
when DBUS_DISABLE_ASSERT
(_dbus_marshal_set_basic): be sure we align for the string length
* dbus/dbus-marshal-recursive.c (skip_one_complete_type): make
this look faster
* dbus/dbus-string.c (_dbus_string_get_const_data_len): add an
inline macro version
(_dbus_string_set_byte): provide inline macro version
Diffstat (limited to 'test')
-rw-r--r-- | test/glib/test-profile.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/test/glib/test-profile.c b/test/glib/test-profile.c index 55dc603f..77ce4369 100644 --- a/test/glib/test-profile.c +++ b/test/glib/test-profile.c @@ -48,7 +48,7 @@ */ #define N_CLIENT_THREADS 1 /* It seems like at least 750000 or so iterations reduces the variability to sane levels */ -#define N_ITERATIONS 7500 +#define N_ITERATIONS 750000 #define N_PROGRESS_UPDATES 20 /* Don't make PAYLOAD_SIZE too huge because it gets used as a static buffer size */ #define PAYLOAD_SIZE 0 @@ -425,7 +425,7 @@ with_bus_server_filter (DBusConnection *connection, DBUS_INTERFACE_ORG_FREEDESKTOP_DBUS, "ServiceOwnerChanged")) { - char *service_name, *old_owner, *new_owner; + const char *service_name, *old_owner, *new_owner; DBusError error; service_name = NULL; @@ -455,10 +455,6 @@ with_bus_server_filter (DBusConnection *connection, if (server->sd->n_clients == 0) g_main_loop_quit (server->sd->loop); } - - dbus_free (service_name); - dbus_free (old_owner); - dbus_free (new_owner); } else if (dbus_message_is_method_call (message, ECHO_INTERFACE, |