diff options
Diffstat (limited to 'libnm/tests')
| -rw-r--r-- | libnm/tests/Makefile.am | 4 | ||||
| -rw-r--r-- | libnm/tests/Makefile.in | 3 | ||||
| -rwxr-xr-x | libnm/tests/libnm-test-launch.sh | 7 | ||||
| -rw-r--r-- | libnm/tests/test-nm-client.c | 3 | ||||
| -rw-r--r-- | libnm/tests/test-remote-settings-client.c | 2 | ||||
| -rw-r--r-- | libnm/tests/test-secret-agent.c | 4 |
6 files changed, 7 insertions, 16 deletions
diff --git a/libnm/tests/Makefile.am b/libnm/tests/Makefile.am index ddcf50be..fd9edb6f 100644 --- a/libnm/tests/Makefile.am +++ b/libnm/tests/Makefile.am @@ -21,7 +21,7 @@ noinst_PROGRAMS = $(TESTS) if WITH_VALGRIND @VALGRIND_RULES@ --launch-dbus else -LOG_COMPILER = $(srcdir)/libnm-test-launch.sh +LOG_COMPILER = $(top_srcdir)/tools/run-test-dbus-session.sh endif TESTS = test-nm-client test-remote-settings-client test-secret-agent @@ -40,5 +40,3 @@ test_secret_agent_SOURCES = \ $(top_builddir)/shared/nm-test-libnm-utils.h \ test-secret-agent.c endif - -EXTRA_DIST = libnm-test-launch.sh diff --git a/libnm/tests/Makefile.in b/libnm/tests/Makefile.in index 0b553a78..455a0761 100644 --- a/libnm/tests/Makefile.in +++ b/libnm/tests/Makefile.in @@ -709,7 +709,7 @@ with_valgrind = @with_valgrind@ @ENABLE_TESTS_TRUE@ $(top_builddir)/libnm/libnm.la \ @ENABLE_TESTS_TRUE@ $(GLIB_LIBS) -@ENABLE_TESTS_TRUE@@WITH_VALGRIND_FALSE@LOG_COMPILER = $(srcdir)/libnm-test-launch.sh +@ENABLE_TESTS_TRUE@@WITH_VALGRIND_FALSE@LOG_COMPILER = $(top_srcdir)/tools/run-test-dbus-session.sh @ENABLE_TESTS_TRUE@test_nm_client_SOURCES = \ @ENABLE_TESTS_TRUE@ $(top_builddir)/shared/nm-test-utils-impl.c \ @ENABLE_TESTS_TRUE@ $(top_builddir)/shared/nm-test-libnm-utils.h \ @@ -725,7 +725,6 @@ with_valgrind = @with_valgrind@ @ENABLE_TESTS_TRUE@ $(top_builddir)/shared/nm-test-libnm-utils.h \ @ENABLE_TESTS_TRUE@ test-secret-agent.c -EXTRA_DIST = libnm-test-launch.sh all: all-am .SUFFIXES: diff --git a/libnm/tests/libnm-test-launch.sh b/libnm/tests/libnm-test-launch.sh deleted file mode 100755 index 980f8345..00000000 --- a/libnm/tests/libnm-test-launch.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh - -# Spawn DBus -eval `dbus-launch --sh-syntax` -trap "kill $DBUS_SESSION_BUS_PID" EXIT - -"$@" diff --git a/libnm/tests/test-nm-client.c b/libnm/tests/test-nm-client.c index 5be69142..9e9d480e 100644 --- a/libnm/tests/test-nm-client.c +++ b/libnm/tests/test-nm-client.c @@ -18,7 +18,7 @@ * */ -#include "config.h" +#include "nm-default.h" #include <string.h> #include <sys/types.h> @@ -101,6 +101,7 @@ test_device_added (void) /* Try deleting the device via the ordinary NM interface, which should fail */ nm_device_delete (device, NULL, &error); g_assert_error (error, NM_DEVICE_ERROR, NM_DEVICE_ERROR_NOT_SOFTWARE); + g_clear_error (&error); g_object_unref (client); g_clear_pointer (&sinfo, nmtstc_service_cleanup); diff --git a/libnm/tests/test-remote-settings-client.c b/libnm/tests/test-remote-settings-client.c index 1a3c7988..8f59656d 100644 --- a/libnm/tests/test-remote-settings-client.c +++ b/libnm/tests/test-remote-settings-client.c @@ -18,7 +18,7 @@ * */ -#include "config.h" +#include "nm-default.h" #include <string.h> #include <sys/types.h> diff --git a/libnm/tests/test-secret-agent.c b/libnm/tests/test-secret-agent.c index f8aedd23..97561866 100644 --- a/libnm/tests/test-secret-agent.c +++ b/libnm/tests/test-secret-agent.c @@ -18,13 +18,13 @@ * */ -#include "config.h" +#include "nm-default.h" #include <string.h> #include <sys/types.h> #include <signal.h> -#include <nm-secret-agent-old.h> +#include "nm-secret-agent-old.h" #include "nm-test-libnm-utils.h" |