summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/Makefile.am7
-rw-r--r--test/name-test/Makefile.am4
-rw-r--r--test/name-test/test-threads-init.c8
-rw-r--r--test/test-utils.c2
4 files changed, 13 insertions, 8 deletions
diff --git a/test/Makefile.am b/test/Makefile.am
index 5c897797..1416f82a 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -62,12 +62,19 @@ decode_gcov_SOURCES= \
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=
diff --git a/test/name-test/Makefile.am b/test/name-test/Makefile.am
index f4dc5343..75b20377 100644
--- a/test/name-test/Makefile.am
+++ b/test/name-test/Makefile.am
@@ -22,17 +22,19 @@ test_names_SOURCES= \
test-names.c
test_names_LDADD=$(top_builddir)/dbus/libdbus-1.la $(top_builddir)/dbus/libdbus-convenience.la
+test_names_LDFLAGS=@R_DYNAMIC_LDFLAG@
test_pending_call_dispatch_SOURCES = \
test-pending-call-dispatch.c
test_pending_call_dispatch_LDADD=$(top_builddir)/dbus/libdbus-1.la $(top_builddir)/dbus/libdbus-convenience.la
-
+test_pending_call_dispatch_LDFLAGS=@R_DYNAMIC_LDFLAG@
test_threads_init_SOURCES = \
test-threads-init.c
test_threads_init_LDADD=$(top_builddir)/dbus/libdbus-1.la $(top_builddir)/dbus/libdbus-convenience.la
+test_threads_init_LDFLAGS=@R_DYNAMIC_LDFLAG@
endif
diff --git a/test/name-test/test-threads-init.c b/test/name-test/test-threads-init.c
index e6743cce..f059993b 100644
--- a/test/name-test/test-threads-init.c
+++ b/test/name-test/test-threads-init.c
@@ -1,6 +1,6 @@
/**
-* Test to make sure late thread initialization works
-**/
+ * Test to make sure late thread initialization works
+ */
#include <dbus/dbus.h>
#include <dbus/dbus-sysdeps.h>
@@ -8,6 +8,7 @@
#include <stdlib.h>
#include <dbus/dbus-internals.h>
+#include <dbus/dbus-connection-internal.h>
static void
_run_iteration (DBusConnection *conn)
@@ -107,9 +108,6 @@ check_condvar_lock (DBusCondVar *condvar1,
int
main (int argc, char *argv[])
{
- long start_tv_sec, start_tv_usec;
- long end_tv_sec, end_tv_usec;
- int i;
DBusMessage *method;
DBusConnection *conn;
DBusError error;
diff --git a/test/test-utils.c b/test/test-utils.c
index 3577bf9c..9665eda3 100644
--- a/test/test-utils.c
+++ b/test/test-utils.c
@@ -171,8 +171,6 @@ void
test_connection_shutdown (DBusLoop *loop,
DBusConnection *connection)
{
- _dbus_connection_close_internal (connection);
-
if (!dbus_connection_set_watch_functions (connection,
NULL,
NULL,