dbus/test/glib test-profile.c,1.23,1.24
Havoc Pennington
hp at freedesktop.org
Sat Jul 30 11:33:58 EST 2005
Update of /cvs/dbus/dbus/test/glib
In directory gabe:/tmp/cvs-serv2703/test/glib
Modified Files:
test-profile.c
Log Message:
2005-07-29 Havoc Pennington <hp at redhat.com>
* test/glib/test-profile.c (write_junk): initialize the junk
buffer so valgrind doesn't have a breakdown
Index: test-profile.c
===================================================================
RCS file: /cvs/dbus/dbus/test/glib/test-profile.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- test-profile.c 2 Jun 2005 18:22:04 -0000 1.23
+++ test-profile.c 30 Jul 2005 01:33:55 -0000 1.24
@@ -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 750000
+#define N_ITERATIONS 25000
#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
@@ -654,7 +654,7 @@
int val;
char *buf;
char *allocated;
- char not_allocated[512+PAYLOAD_SIZE];
+ char not_allocated[512+PAYLOAD_SIZE] = { '\0', };
g_assert (count < (int) sizeof(not_allocated));
@@ -978,6 +978,7 @@
cd.iterations = 1;
cd.loop = g_main_loop_new (context, FALSE);
+ cd.vtable = data;
channel = g_io_channel_unix_new (fd);
More information about the dbus-commit
mailing list