glib/gio/tests
Sjoerd Simons f07201c314 GDBusConnection: Fix race in /gdbus/connection/life-cycle
GDBusConnection sets the closed flag in the worker thread, then adds an
idle callback (which refs the Connection) to signal this in the main
thread. The tests session_bus_down doesn't spin the mainloop, so the
"closed" signal will always fire if iterating the mainloop later (and
drops the ref when doing so). But _is_closed can return TRUE even before
signalling this, in which case the "closed" signal isn't fired and the
ref isn't dropped, causing the test to fail.

Instead simply always wait for the closed signal, which is a good thing
to check anyway and ensures the ref is closed.

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=661896
Reviewed-by: Matthias Clasen <mclasen@redhat.com>
2011-10-18 13:18:09 +01:00
..
gdbus-object-manager-example GDBus: Regenerate code when the codegen or options passed to it changes 2011-10-05 12:42:06 -04:00
schema-tests compile schemas test: open ranges for all types 2011-03-31 15:15:09 +05:30
.gitignore gitignore 2011-10-16 19:11:00 -04:00
actions.c actions: merge testcases change_state and entries 2011-06-29 16:20:52 +01: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 Add some more appinfo tests 2010-07-04 20:51:06 -04:00
appinfo.c Add app lauch environment test 2011-10-16 00:08:42 -04:00
async-close-output-stream.c Don't use deprecated GThread API in gio tests 2011-10-10 09:49:50 -04:00
basic-application.c GApplication test: fix testcase to avoid fork() 2011-09-14 14:09:12 -04:00
buffered-input-stream.c Plug a mem leak in buffered-input-stream test 2010-09-03 15:57:26 -04:00
buffered-output-stream.c Improve coverage of buffered output stream tests 2010-07-30 19:51:21 -04:00
cancellable.c gio: GCancellable can be used concurrently 2011-08-19 11:13:37 +02: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 Misc test additions 2010-07-05 03:09:36 -04:00
contexts.c contexts test: don't use deprecated GCond wait API 2011-10-16 21:41:15 -04:00
converter-stream.c Silence a bunch of -Wunused-but-set-variable warnings 2011-04-08 15:44:25 -04:00
data-input-stream.c GDataInputStream: Add _utf8() variants of _read_line 2011-06-16 20:03:02 -04:00
data-output-stream.c Plug a huge mem leak in data-output-stream test 2010-09-03 15:55:10 -04:00
de.po Merge GSettings tests 2010-04-17 01:48:05 -04:00
desktop-app-info.c tests: unbreak desktop-app-info test for jhbuild 2010-12-28 12:18:51 +01:00
echo-server.c Don't use deprecated GThread API in gio tests 2011-10-10 09:49:50 -04:00
enums.xml.template GSettings: major refactor. Add enums, range. 2010-06-16 18:17:53 -04:00
file.c Silence a bunch of -Wunused-but-set-variable warnings 2011-04-08 15:44:25 -04:00
filter-cat.c Add GZIP header processing to GZlibCompressor/GZlibDecompressor 2010-08-17 17:37:32 +02:00
filter-streams.c Fix warning 2010-06-09 10:32:36 +02:00
g-file-info.c Plug a mem leak in g-file-info test 2010-09-03 15:37:08 -04:00
g-file.c Revert "Move gio tests from gio/tests/ to tests/gio/" 2009-07-05 22:49:24 -04:00
g-icon.c Make gio/tests/g-icon pass again 2010-11-27 16:56:44 -05:00
gapplication-example-actions.c Make 4 incompatible changes to the GAction API 2011-06-29 11:38:21 +01:00
gapplication-example-cmdline2.c more 'static' adding in testcases 2011-10-16 21:41:15 -04:00
gapplication-example-cmdline3.c Avoid an interaction between GApplication and GOption 2011-04-08 07:19:38 -04:00
gapplication-example-cmdline.c Tweak GApplication docs 2010-11-02 23:02:05 -04:00
gapplication-example-open.c Tweak GApplication docs 2010-11-02 23:02:05 -04:00
gapplication.c GApplication test: fix testcase to avoid fork() 2011-09-14 14:09:12 -04:00
gdbus-addresses.c Improve dbus address test coverage 2010-08-08 21:32:03 -04:00
gdbus-bz627724.c Add work-around for Bug 627724 2010-09-10 16:23:14 -04:00
gdbus-close-pending.c Regression test for closing a stream, slowly, while a message is queued 2011-09-16 12:00:22 -04:00
gdbus-connection-flush-helper.c Bug 618882 – No way to ensure that a message is sent 2010-07-07 15:03:03 -04:00
gdbus-connection-loss.c Don't use deprecated GThread API in gio tests 2011-10-10 09:49:50 -04:00
gdbus-connection-slow.c Take out the timeout from the large-message test 2011-07-10 23:11:30 -04:00
gdbus-connection.c GDBusConnection: Fix race in /gdbus/connection/life-cycle 2011-10-18 13:18:09 +01:00
gdbus-error.c Add some more test about gdbus_error apis 2010-08-07 18:55:21 -04:00
gdbus-example-export.c more 'static' adding in testcases 2011-10-16 21:41:15 -04:00
gdbus-example-objectmanager-client.c gdbus-codegen: Generate GDBusObject{,Proxy,Skeleton} subtypes 2011-04-25 09:29:18 -04:00
gdbus-example-objectmanager-server.c GDBusObjectManagerServer: Allow setting :connection property 2011-05-04 03:43:52 -04:00
gdbus-example-own-name.c Strip copyright headers from examples 2010-05-11 15:50:19 -04:00
gdbus-example-peer.c GDBusServer: Make ::new-connection return whether the connection was claimed 2010-09-09 14:02:31 -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 GDBus: Add GDBusSendMessageFlags 2010-07-19 16:07:57 -04:00
gdbus-example-subtree.c Update the GDBus subtree example for the new API 2010-07-19 15:03:54 -04:00
gdbus-example-unix-fd-client.c GDBus: Add GDBusSendMessageFlags 2010-07-19 16:07:57 -04:00
gdbus-example-watch-name.c Strip copyright headers from examples 2010-05-11 15:50:19 -04:00
gdbus-example-watch-proxy.c Bug 621213 – GDBusProxy and well-known names 2010-06-11 18:21:27 -04:00
gdbus-exit-on-close.c Disable two GDBus tests 2011-09-16 11:18:26 -04:00
gdbus-export.c g_thread_new: never fail 2011-10-13 01:00:57 -04:00
gdbus-introspection.c Fix memory leaks in the gdbus introspection parser 2011-02-15 02:29:15 -05:00
gdbus-message.c GDBusMessage: Don't reset serial number when copying 2010-09-09 15:15:13 -04:00
gdbus-names.c GDBus: fix name test cases 2010-09-23 16:28:59 -04:00
gdbus-non-socket.c Don't use deprecated GThread API in gio tests 2011-10-10 09:49:50 -04:00
gdbus-peer.c g_thread_new: never fail 2011-10-13 01:00:57 -04:00
gdbus-proxy-threads.c g_thread_new: never fail 2011-10-13 01:00:57 -04:00
gdbus-proxy-well-known-name.c Bug 621213 – GDBusProxy and well-known names 2010-06-11 18:21:27 -04:00
gdbus-proxy.c GDBus: disable two more GDBus tests using fork() 2011-10-05 10:56:11 -04:00
gdbus-serialization.c Fix some compiler warnings from gcc 4.6 2011-04-15 15:51:25 -04:00
gdbus-sessionbus.c Don't do < 0 on an unsigned value 2011-06-14 11:40:32 -04:00
gdbus-sessionbus.h Initial GDBus code-drop from GDBus-standalone repo 2010-05-06 14:21:32 -04:00
gdbus-test-codegen.c g_thread_new: never fail 2011-10-13 01:00:57 -04:00
gdbus-tests.c GDBus: Use thread-default GMainContext in _g_assert_property_notify + friends 2011-04-11 10:51:37 -04:00
gdbus-tests.h Initial GDBus code-drop from GDBus-standalone repo 2010-05-06 14:21:32 -04:00
gdbus-testserver.py GDBusProxy: Correctly handle unknown members when having an expected interface 2011-10-05 10:45:22 -04:00
gdbus-threading.c g_thread_new: never fail 2011-10-13 01:00:57 -04:00
gschema-compile.c Adapt tests to string changes 2011-09-11 23:28:44 -04:00
gsettings.c more 'static' adding in testcases 2011-10-16 21:41:15 -04:00
gtesttlsbackend.c Added TLS PEM parser unit test 2011-07-27 16:23:33 -04:00
gtesttlsbackend.h Added TLS PEM parser unit test 2011-07-27 16:23:33 -04:00
gtlsconsoleinteraction.c more 'static' adding in testcases 2011-10-16 21:41:15 -04:00
gtlsconsoleinteraction.h GTlsDatabase and related objects 2011-08-04 08:54:55 +02:00
httpd.c Don't use deprecated GThread API in gio tests 2011-10-10 09:49:50 -04:00
io-stream.c more 'static' adding in testcases 2011-10-16 21:41:15 -04: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 Silence a bunch of -Wunused-but-set-variable warnings 2011-04-08 15:44:25 -04: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 Add a tests of some GVfs functions 2011-10-16 16:09:33 -04:00
memory-input-stream.c Plug a mem leak in the memory-input-stream test 2010-09-03 15:31:37 -04:00
memory-output-stream.c Fix build with gcc-2.*. 2011-05-23 13:05:49 -04:00
mimeapps.c Add another mimeapps test 2011-09-26 16:54:23 -04:00
network-address.c g_network_address_parse: deprecate symbolic port names 2011-09-03 19:58:40 -04:00
nothing.pem Added TLS PEM parser unit test 2011-07-27 16:23:33 -04:00
org.gtk.test.gschema Merge GSettings tests 2010-04-17 01:48:05 -04:00
org.gtk.test.gschema.xml GSettings: add G_SETTINGS_BIND_INVERT_BOOLEAN flag 2010-08-03 02:09:10 -04:00
pollable.c Add pollable input/output streams 2010-11-26 15:08:08 -05:00
proxy.c Fix some compiler warnings from gcc 4.6 2011-04-15 15:51:25 -04:00
readwrite.c Plug a mem leak in readwrite test 2010-09-03 15:44:28 -04:00
resolver.c g_thread_new: never fail 2011-10-13 01:00:57 -04:00
send-data.c g_thread_new: never fail 2011-10-13 01:00:57 -04:00
simple-async-result.c Improve the async result test coverage 2010-08-08 21:32:03 -04:00
sleepy-stream.c sleepy-stream test: use a real GError domain 2011-09-30 13:17:27 +01:00
socket-client.c g_thread_new: never fail 2011-10-13 01:00:57 -04:00
socket-common.c more 'static' adding in testcases 2011-10-16 21:41:15 -04:00
socket-server.c g_thread_new: never fail 2011-10-13 01:00:57 -04:00
socket.c g_thread_new: never fail 2011-10-13 01:00:57 -04:00
srvtarget.c Revert "Move gio tests from gio/tests/ to tests/gio/" 2009-07-05 22:49:24 -04:00
test-codegen.xml gdbus-codegen: Add support for new org.gtk.GDBus.C.UnixFD annotation 2011-07-21 16:06:18 -04:00
testenum.h Bug 622124 - implement flags for GSettings 2010-07-01 19:06:02 -04:00
tls-certificate.c Added TLS PEM parser unit test 2011-07-27 16:23:33 -04:00
tls-interaction.c more 'static' adding in testcases 2011-10-16 21:41:15 -04:00
unix-fd.c GUnixSocketAddress: handle abstract sockets with non-0-padded names 2010-04-22 11:54:41 -04:00
unix-streams.c g_thread_new: never fail 2011-10-13 01:00:57 -04:00
vfs.c Add a tests of some GVfs functions 2011-10-16 16:09:33 -04:00
volumemonitor.c volume monitor: don't unref NULL 2010-10-05 02:29:47 -04:00
win32-streams.c Fix up testcase broken due to g_thread_new API change 2011-10-17 23:00:29 +02:00