dbus/test Makefile.am,1.42,1.43 test-utils.c,1.7,1.8
Havoc Pennington
hp at kemper.freedesktop.org
Sun Oct 1 08:36:21 PDT 2006
- Previous message: dbus/test/name-test Makefile.am, 1.4, 1.5 test-threads-init.c, 1.1,
1.2
- Next message: dbus/dbus Makefile.am, 1.84, 1.85 dbus-bus.c, 1.58, 1.59 dbus-bus.h,
1.18, 1.19 dbus-connection-internal.h, 1.28,
1.29 dbus-connection.c, 1.135, 1.136 dbus-internals.c, 1.49,
1.50 dbus-server-debug-pipe.c, 1.23, 1.24 dbus-server-socket.c,
1.2, 1.3 dbus-server.c, 1.49, 1.50 dbus-sysdeps-unix.c, 1.7,
1.8 dbus-sysdeps.c, 1.114, 1.115
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvs/dbus/dbus/test
In directory kemper:/tmp/cvs-serv11502/test
Modified Files:
Makefile.am test-utils.c
Log Message:
2006-10-01 Havoc Pennington <hp at redhat.com>
* dbus/dbus-connection.c (_dbus_connection_close_if_only_one_ref):
Add a hack to make DBusNewConnectionFunction work right.
* dbus/dbus-server-socket.c (handle_new_client_fd_and_unlock): use
the hack here. Also, fix the todo about refcount leak.
* dbus/dbus-server-debug-pipe.c (_dbus_transport_debug_pipe_new):
and use the hack here
* dbus/dbus-connection.c: Kill the "shared" flag vs. the
"shareable" flag; this was completely broken, since it meant
dbus_connection_open() returned a connection of unknown
shared-ness. Now, we always hold a ref on anything opened
as shareable.
Move the call to notify dbus-bus.c into
connection_forget_shared_unlocked, so libdbus consistently forgets
all its knowledge of a connection at once. This exposed numerous
places where things were totally broken if we dropped a ref inside
get_dispatch_status_unlocked where
connection_forget_shared_unlocked was previously, so move
connection_forget_shared_unlocked into
_dbus_connection_update_dispatch_status_and_unlock. Also move the
exit_on_disconnect here.
(shared_connections_shutdown): this assumed weak refs to the
shared connections; since we have strong refs now, the assertion
was failing and stuff was left in the hash. Fix it to close
still-open shared connections.
* bus/dispatch.c: fixup to use dbus_connection_open_private on the
debug pipe connections
* dbus/dbus-connection.c (dbus_connection_dispatch): only notify
dbus-bus.c if the closed connection is in fact shared
(_dbus_connection_close_possibly_shared): rename from
_dbus_connection_close_internal
(dbus_connection_close, dbus_connection_open,
dbus_connection_open_private): Improve docs to explain the deal
with when you should close or unref or both
* dbus/dbus-bus.c
(_dbus_bus_notify_shared_connection_disconnected_unlocked): rename
from _dbus_bus_check_connection_and_unref_unlocked and modify to
loop over all connections
* test/test-utils.c (test_connection_shutdown): don't try to close
shared connections.
* test/name-test/test-threads-init.c (main): fix warnings in here
* dbus/dbus-sysdeps.c (_dbus_abort): support DBUS_BLOCK_ON_ABORT
env variable to cause blocking waiting for gdb; drop
DBUS_PRINT_BACKTRACE and just call _dbus_print_backtrace()
unconditionally.
* configure.in: add -export-dynamic to libtool flags if assertions enabled
so _dbus_print_backtrace works.
* dbus/dbus-sysdeps-unix.c (_dbus_print_backtrace): use fprintf
instead of _dbus_verbose to print the backtrace, and diagnose lack
of -rdynamic/-export-dynamic
Index: Makefile.am
===================================================================
RCS file: /cvs/dbus/dbus/test/Makefile.am,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -d -r1.42 -r1.43
--- Makefile.am 25 Aug 2006 19:59:49 -0000 1.42
+++ Makefile.am 1 Oct 2006 15:36:18 -0000 1.43
@@ -62,12 +62,19 @@
TEST_LIBS=$(DBUS_TEST_LIBS) $(top_builddir)/dbus/libdbus-convenience.la
test_service_LDADD=$(TEST_LIBS)
+test_service_LDFLAGS=@R_DYNAMIC_LDFLAG@
test_names_LDADD=$(TEST_LIBS)
+test_names_LDFLAGS=@R_DYNAMIC_LDFLAG@
## break_loader_LDADD= $(TEST_LIBS)
+## break_loader_LDFLAGS=@R_DYNAMIC_LDFLAG@
test_shell_service_LDADD=$(TEST_LIBS)
+test_shell_service_LDFLAGS=@R_DYNAMIC_LDFLAG@
shell_test_LDADD=$(TEST_LIBS)
+shell_test_LDFLAGS=@R_DYNAMIC_LDFLAG@
spawn_test_LDADD=$(TEST_LIBS)
+spawn_test_LDFLAGS=@R_DYNAMIC_LDFLAG@
decode_gcov_LDADD=$(TEST_LIBS)
+decode_gcov_LDFLAGS=@R_DYNAMIC_LDFLAG@
EXTRA_DIST=
Index: test-utils.c
===================================================================
RCS file: /cvs/dbus/dbus/test/test-utils.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- test-utils.c 6 Sep 2006 22:00:07 -0000 1.7
+++ test-utils.c 1 Oct 2006 15:36:18 -0000 1.8
@@ -171,8 +171,6 @@
test_connection_shutdown (DBusLoop *loop,
DBusConnection *connection)
{
- _dbus_connection_close_internal (connection);
-
if (!dbus_connection_set_watch_functions (connection,
NULL,
NULL,
- Previous message: dbus/test/name-test Makefile.am, 1.4, 1.5 test-threads-init.c, 1.1,
1.2
- Next message: dbus/dbus Makefile.am, 1.84, 1.85 dbus-bus.c, 1.58, 1.59 dbus-bus.h,
1.18, 1.19 dbus-connection-internal.h, 1.28,
1.29 dbus-connection.c, 1.135, 1.136 dbus-internals.c, 1.49,
1.50 dbus-server-debug-pipe.c, 1.23, 1.24 dbus-server-socket.c,
1.2, 1.3 dbus-server.c, 1.49, 1.50 dbus-sysdeps-unix.c, 1.7,
1.8 dbus-sysdeps.c, 1.114, 1.115
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the dbus-commit
mailing list