glib/gio/tests
David Zeuthen 2652dc1357 GDBus: Avoid use of libdbus-1 in authentication tests
This greatly simplifies the test since everything is now in a single
process and possible bugs / quirks in libdbus-1 will not interfere
with the tests. On the other hand, we no longer test interoperability
with libdbus-1. This is somewhat moot, however, since other tests that
involve a message bus (e.g. GTestDBus users which include most of the
GDBus test suite itself) will test this.

Also ensure that we don't pollute existing D-Bus keyrings for the
DBUS_COOKIE_SHA1 authentication method (e.g. files in the
~/.dbus-keyrings directory) by setting the environment variables
G_DBUS_COOKIE_SHA1_KEYRING_DIR and
G_DBUS_COOKIE_SHA1_KEYRING_DIR_IGNORE_PERMISSION.

All in all, this change avoids some thorny issues where the GDBus and
libdbus-1 implementations disagree on whether an item in the D-Bus
keyring is still valid (items have an age etc.). In reality, since the
DBUS_COOKIE_SHA1 authentication method is never used in production,
this is never hit in production. This bug was, however, frequently hit
if you just ran the test suite repeatedly for 15 minutes or so.

Also add TODO items to mention that we currently don't test corner
cases involving

 - DBUS_COOKIE_SHA1 timeouts
 - libdbus-1 interoperability

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
2013-01-03 12:12:55 -05:00
..
gdbus-object-manager-example gdbus-codegen: make members of an interface inherit the "Since" annotation 2012-10-03 11:13:12 -04:00
schema-tests Add a test for CDATA in gschema.xml files 2011-11-07 00:14:28 -05:00
services Adding test coverage for GTestDBus activating in-tree services. 2012-12-28 21:28:28 -05:00
.gitignore gdbus: Allow GDBusObjectManagerClient to work on peer connections 2012-10-26 21:20:04 +02:00
actions.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
appinfo-test2.desktop Cleanups 2010-07-05 00:56:12 -04:00
appinfo-test-gnome.desktop Add some more appinfo tests 2010-07-04 20:51:06 -04:00
appinfo-test-notgnome.desktop Add some more appinfo tests 2010-07-04 20:51:06 -04:00
appinfo-test.c Merge the wip/gapplication branch 2010-06-07 13:48:42 -04:00
appinfo-test.desktop Improve GAppInfo test coverage 2012-08-19 02:23:32 -04:00
appinfo.c Add a test for the GAppLaunchContext::launched signal 2012-11-21 21:20:25 -05:00
async-close-output-stream.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
basic-application.c Improve GApplication test coverage 2012-06-04 06:04:28 -04:00
buffered-input-stream.c tests/buffered-input-stream: Fix size of parameter passed 2012-11-07 09:51:20 -05:00
buffered-output-stream.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
cancellable.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
cert1.pem Added TLS PEM parser unit test 2011-07-27 16:23:33 -04:00
cert2.pem Added TLS PEM parser unit test 2011-07-27 16:23:33 -04:00
cert3.pem Added TLS PEM parser unit test 2011-07-27 16:23:33 -04:00
cert-key.pem Added TLS PEM parser unit test 2011-07-27 16:23:33 -04:00
cert-list.pem Added TLS PEM parser unit test 2011-07-27 16:23:33 -04:00
contenttype.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
contexts.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
converter-stream.c Fix poll able streams for Darwin (and probably BSD) 2012-11-09 09:23:01 -08:00
credentials.c Remove a failing test 2012-12-29 00:03:09 -05:00
data-input-stream.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
data-output-stream.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
de.po Merge GSettings tests 2010-04-17 01:48:05 -04:00
desktop-app-info.c Add a test for new GDesktopAppInfo getters 2012-11-21 21:13:01 -05:00
echo-server.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
enums.xml.template GSettings: major refactor. Add enums, range. 2010-06-16 18:17:53 -04:00
file.c gio: Don't leak the temp file when g_file_replace() fails or is cancelled 2012-12-10 17:04:05 +01:00
fileattributematcher.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
filter-cat.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
filter-streams.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
g-file-info.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
g-file.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
g-icon.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
gapplication-example-actions.c Don't use deprecated GApplication api in examples 2011-12-08 18:05:15 -05:00
gapplication-example-cmdline2.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
gapplication-example-cmdline3.c e G_SOURCE_CONTINUE/REMOVE internally 2012-01-25 16:15:18 -05:00
gapplication-example-cmdline.c Tweak GApplication docs 2010-11-02 23:02:05 -04:00
gapplication-example-dbushooks.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
gapplication-example-open.c Tweak GApplication docs 2010-11-02 23:02:05 -04:00
gapplication.c Fix race condition in gapplication/basic test 2012-11-30 00:07:58 +01:00
gdbus-addresses.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
gdbus-auth.c GDBus: Avoid use of libdbus-1 in authentication tests 2013-01-03 12:12:55 -05:00
gdbus-bz627724.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
gdbus-close-pending.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
gdbus-connection-flush-helper.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
gdbus-connection-flush.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
gdbus-connection-loss.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
gdbus-connection-slow.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
gdbus-connection.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
gdbus-daemon.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
gdbus-error.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
gdbus-example-export.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
gdbus-example-objectmanager-client.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
gdbus-example-objectmanager-server.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
gdbus-example-own-name.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
gdbus-example-peer.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
gdbus-example-proxy-subclass.c Bug 621213 – GDBusProxy and well-known names 2010-06-11 18:21:27 -04:00
gdbus-example-server.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
gdbus-example-subtree.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
gdbus-example-unix-fd-client.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
gdbus-example-watch-name.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
gdbus-example-watch-proxy.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
gdbus-exit-on-close.c Revert "tests: port from g_test_trap_subprocess() to g_test_trap_fork()" 2012-12-19 15:20:37 -05:00
gdbus-export.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
gdbus-introspection.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
gdbus-message.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
gdbus-names.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
gdbus-non-socket.c Revert "tests: port from g_test_trap_subprocess() to g_test_trap_fork()" 2012-12-19 15:20:37 -05:00
gdbus-peer-object-manager.c build: Prototype GType accessors for private classes 2012-11-01 20:12:02 -04:00
gdbus-peer.c Check that credentials pass through D-Bus on supported platforms 2012-12-19 15:14:35 -05:00
gdbus-proxy-threads.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
gdbus-proxy-well-known-name.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
gdbus-proxy.c Revert "tests: port from g_test_trap_subprocess() to g_test_trap_fork()" 2012-12-19 15:20:37 -05:00
gdbus-serialization.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
gdbus-sessionbus.c Use GTestDBus in all GDBus unit tests 2012-04-19 10:07:39 +02:00
gdbus-sessionbus.h Use GTestDBus in all GDBus unit tests 2012-04-19 10:07:39 +02:00
gdbus-test-codegen.c build: Don't use C99 declarations 2012-11-01 20:12:01 -04:00
gdbus-test-fixture.c Adding test coverage for GTestDBus activating in-tree services. 2012-12-28 21:28:28 -05:00
gdbus-tests.c Use GTestDBus in all GDBus unit tests 2012-04-19 10:07:39 +02:00
gdbus-tests.h Use GTestDBus in all GDBus unit tests 2012-04-19 10:07:39 +02:00
gdbus-testserver.py gdbus-testserver: port to pygi 2012-10-15 19:37:04 -04:00
gdbus-threading.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
gmenumodel.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
gschema-compile.c Revert "tests: port from g_test_trap_subprocess() to g_test_trap_fork()" 2012-12-19 15:20:37 -05:00
gsettings.c Revert "tests: port from g_test_trap_subprocess() to g_test_trap_fork()" 2012-12-19 15:20:37 -05:00
gtesttlsbackend.c Revert "gtlscertificate: Add certificate-bytes and private-key-bytes props" 2012-08-21 13:30:02 +02:00
gtesttlsbackend.h Added TLS PEM parser unit test 2011-07-27 16:23:33 -04:00
gtlsconsoleinteraction.c Revert "Fix compilation on Android with the bionic C library" 2012-11-28 16:55:12 +01:00
gtlsconsoleinteraction.h GTlsDatabase and related objects 2011-08-04 08:54:55 +02:00
httpd.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
inet-address.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
io-stream.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
key8.pem GTlsCertificate: support unencrypted PKCS#8 private keys 2011-11-18 20:26:58 -05:00
key-cert.pem Added TLS PEM parser unit test 2011-07-27 16:23:33 -04:00
key.pem Added TLS PEM parser unit test 2011-07-27 16:23:33 -04:00
live-g-file.c gfileenumerator: Add a g_file_enumerator_get_child method 2012-12-13 21:38:18 -05:00
live-g-file.txt Revert "Move gio tests from gio/tests/ to tests/gio/" 2009-07-05 22:49:24 -04:00
Makefile.am GDBus: Avoid use of libdbus-1 in authentication tests 2013-01-03 12:12:55 -05:00
memory-input-stream.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
memory-output-stream.c GMemoryOutputStream: Add new _resizable() constructor usable from bindings 2012-11-27 20:45:21 -05:00
mimeapps.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
network-address.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
network-monitor.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
nothing.pem Added TLS PEM parser unit test 2011-07-27 16:23:33 -04:00
org.gtk.schemasourcecheck.gschema.xml Add test case and fix some bugs 2011-11-17 14:03:39 +00:00
org.gtk.test.gschema Merge GSettings tests 2010-04-17 01:48:05 -04:00
org.gtk.test.gschema.xml Improve GSettings test coverage 2012-08-19 02:24:04 -04:00
permission.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
pollable.c Fix poll able streams for Darwin (and probably BSD) 2012-11-09 09:23:01 -08:00
proxy-test.c build: Prototype GType accessors for private classes 2012-11-01 20:12:02 -04:00
proxy.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
readwrite.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
resolver.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
resourceplugin.c Add tests for GResource 2012-01-13 17:12:53 +01:00
resources.c build: Add missing "static" keyword where it should be used 2012-11-01 20:12:01 -04:00
send-data.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
simple-async-result.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
sleepy-stream.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
socket-client.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
socket-common.c gio/tests/socket-common.c: add a missing #ifdef G_OS_UNIX 2012-02-03 12:58:53 -05:00
socket-server.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
socket.c Add gnetworking.h 2012-12-12 15:20:22 +01:00
srvtarget.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
task.c gtask: don't deadlock when tasks block on other tasks 2012-12-18 13:19:08 -05:00
test1.txt Add tests for GResource 2012-01-13 17:12:53 +01:00
test2.gresource.xml Add tests for GResource 2012-01-13 17:12:53 +01:00
test2.txt Add tests for GResource 2012-01-13 17:12:53 +01:00
test3.gresource.xml Add tests for GResource 2012-01-13 17:12:53 +01:00
test3.txt Add tests for GResource 2012-01-13 17:12:53 +01:00
test4.gresource.xml Add tests for GResource 2012-01-13 17:12:53 +01:00
test-codegen.xml gdbus-codegen: Update tests for new inheritance-semantics for Since 2012-10-03 11:23:04 -04:00
test-io-stream.c GDBus tests: factor out TestIOStream, test_pipe and test_bidi_pipe 2011-11-21 18:15:26 +00:00
test-io-stream.h GDBus tests: factor out TestIOStream, test_pipe and test_bidi_pipe 2011-11-21 18:15:26 +00:00
test-pipe-unix.c test-pipe-unix: Add missing include 2012-11-02 09:03:52 -04:00
test-pipe-unix.h GDBus tests: factor out TestIOStream, test_pipe and test_bidi_pipe 2011-11-21 18:15:26 +00:00
test.gresource.xml resources: compiler: Allow stripping blanks from xml data 2012-01-25 14:47:37 +01:00
testenum.h Bug 622124 - implement flags for GSettings 2010-07-01 19:06:02 -04:00
tls-certificate.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
tls-interaction.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
unix-fd.c Add gnetworking.h 2012-12-12 15:20:22 +01:00
unix-streams.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
vfs.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
volumemonitor.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
win32-streams.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00