Dan Winship
e3d1869ee3
tests: port from g_test_trap_subprocess() to g_test_trap_fork()
...
https://bugzilla.gnome.org/show_bug.cgi?id=679683
2013-05-13 12:10:52 -04:00
Matthias Clasen
0178402c6d
Revert "tests: port from g_test_trap_subprocess() to g_test_trap_fork()"
...
This reverts commit ea06ec8063
.
2012-12-19 15:20:37 -05:00
Dan Winship
ea06ec8063
tests: port from g_test_trap_subprocess() to g_test_trap_fork()
...
(or, in a few cases, to g_test_expect_message())
https://bugzilla.gnome.org/show_bug.cgi?id=679683
2012-12-19 14:35:10 -05:00
Ryan Lortie
1dc774a653
Remove g_type_init() calls
...
Very many testcases, some GLib tools (resource compiler, etc) and
GApplication were calling g_type_init().
Remove those uses, as they are no longer required.
https://bugzilla.gnome.org/show_bug.cgi?id=686161
2012-10-16 09:39:24 -04:00
Xavier Claessens
415a8d81f6
Use GTestDBus in all GDBus unit tests
...
To make port easier, this rewrites dbus-sessionbus.c using a
GTestDBus singleton internally.
https://bugzilla.gnome.org/show_bug.cgi?id=672985
2012-04-19 10:07:39 +02:00
David Zeuthen
a6f83d73e5
Revert "Add GTestDBus object"
...
This reverts commit 1b5f70b5b0
.
2012-04-18 13:47:51 -04:00
Xavier Claessens
1b5f70b5b0
Add GTestDBus object
...
This is a helper to write unit tests using a private dbus-daemon.
session_bus_up/down() are now just wrappers around a GTestDBus singleton.
https://bugzilla.gnome.org/show_bug.cgi?id=672985
2012-04-18 11:19:13 -04:00
Simon McVittie
fc21c6ced0
gdbus-exit-on-close test: don't leak a variant
...
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=662100
Bug-NB: NB#287088
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Reviewed-by: Colin Walters <walters@verbum.org>
2011-11-11 16:05:16 +00:00
Simon McVittie
f0c383917b
gdbus-exit-on-close test: optionally be more verbose for debugging
...
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=662100
Bug-NB: NB#287088
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Reviewed-by: Colin Walters <walters@verbum.org>
2011-11-11 16:05:04 +00:00
Simon McVittie
be89f052c2
gdbus-exit-on-close test: cover more possibilities
...
We didn't previously test anything except the implicit default of TRUE.
Now we test implicit TRUE, explicit TRUE, explicit FALSE, and
disconnecting at the local end (which regressed while fixing Bug #651268 ).
Also avoid some questionable use of a main context, which fell foul of
Bug #658999 and caused this test to be disabled in master.
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=662100
Bug-NB: NB#287088
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Reviewed-by: David Zeuthen <davidz@redhat.com>
2011-10-19 10:50:02 +01:00
Simon McVittie
6c33e1cd9d
Revert "Disable two GDBus tests"
...
This reverts commit 05ef173466
.
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=662100
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Reviewed-by: David Zeuthen <davidz@redhat.com>
2011-10-19 10:37:27 +01:00
Ryan Lortie
05ef173466
Disable two GDBus tests
...
These tests try to use GMainContext across fork() which now fails a lot
more violently than it used to.
See https://bugzilla.gnome.org/show_bug.cgi?id=658999 for information.
2011-09-16 11:18:26 -04:00
David Zeuthen
86d947f01f
Fix gdbus-exit-on-close test case
...
Forgot to update the test case after last commit.
Signed-off-by: David Zeuthen <davidz@redhat.com>
2010-08-03 12:47:07 -04:00
Matthias Clasen
728c4e38e7
More copyright year updates
2010-05-10 08:07:28 -04:00
David Zeuthen
d0a14469d0
Initial GDBus code-drop from GDBus-standalone repo
...
Things compile and the test-suite passes. Still need to hook up
gio.symbols and docs. There are still a bunch of TODOs left in the
sources that needs to be addressed.
Signed-off-by: David Zeuthen <davidz@redhat.com>
2010-05-06 14:21:32 -04:00