Commit Graph

3790 Commits

Author SHA1 Message Date
Stef Walter
8dda42d14d giomodule: Fix leaks in module loading
https://bugzilla.gnome.org/show_bug.cgi?id=711798
2013-11-13 12:59:41 +01:00
Stef Walter
4677af675f gdesktopappinfo: Free memory caches and desktop file monitors during cleanup
https://bugzilla.gnome.org/show_bug.cgi?id=711799
2013-11-13 12:59:41 +01:00
Stef Walter
ee33d6e07f mimeapps: Don't make this test dependent on behavior of gvfs
https://bugzilla.gnome.org/show_bug.cgi?id=711799
2013-11-13 12:59:41 +01:00
Stef Walter
e9d07420ef gdbus-testserver: Fix behavior during cleanup
https://bugzilla.gnome.org/show_bug.cgi?id=711799
2013-11-13 12:59:41 +01:00
Stef Walter
037beed390 gdbus-proxy: Fix erroneous timeout during following tests
https://bugzilla.gnome.org/show_bug.cgi?id=711809
2013-11-13 12:59:41 +01:00
Stef Walter
4ae30d11ce gdbus-export: Fix leaks in tests
https://bugzilla.gnome.org/show_bug.cgi?id=711802
2013-11-13 12:59:41 +01:00
Stef Walter
32ab77fd85 gdbus-example-export: Fix behavior when using cleanup
https://bugzilla.gnome.org/show_bug.cgi?id=711799
2013-11-13 12:59:41 +01:00
Stef Walter
cb69dc5b1d gdbus-auth: Fix leaks in tests
https://bugzilla.gnome.org/show_bug.cgi?id=711802
2013-11-13 12:59:41 +01:00
Stef Walter
89a5771cb8 gtestdbus: Cleanup io channel which would otherwise leak
https://bugzilla.gnome.org/show_bug.cgi?id=711799
2013-11-13 12:59:41 +01:00
Stef Walter
e3595a89d6 gtestdbus: Properly close server connections
Otherwise g_test_dbus_down() following a g_test_dbus_stop()
will hang until it times out.

https://bugzilla.gnome.org/show_bug.cgi?id=711807
2013-11-13 12:59:41 +01:00
Stef Walter
feacc2c34d gtestdbus: Don't destroy GSource twice
https://bugzilla.gnome.org/show_bug.cgi?id=711806
2013-11-13 12:59:40 +01:00
Stef Walter
19ea5e4635 gdbusname: Cleanup global tables
https://bugzilla.gnome.org/show_bug.cgi?id=711799
2013-11-13 12:59:40 +01:00
Stef Walter
b96349d30f gdbusintrospection: Free up cache when done with it
https://bugzilla.gnome.org/show_bug.cgi?id=711799
2013-11-13 12:59:40 +01:00
Stef Walter
a0beb13d80 gdbus-connection: Fix race condition in test
The test was expecting that the spawned process wouldn't start
up before the NameOwnerChanged signal was subscribed.

https://bugzilla.gnome.org/show_bug.cgi?id=711805
2013-11-13 12:59:40 +01:00
Stef Walter
885e4429bf gdbusconnection: Fix invalid memory access
Occurs when the string is zero length.

https://bugzilla.gnome.org/show_bug.cgi?id=711804
2013-11-13 12:59:40 +01:00
Stef Walter
daa6d34e46 gsubprocess: Cleanup GSubprocess correctly
Although it's nice that GSubprocess object lives until its
child goes away, this can't be the case during cleanup and or
unloading of gio, since the GLib worker thread will run non-existant
code.

So in the case that GIO hits cleanup, we finalize the GSubprocess
regardless of the state of its child.

https://bugzilla.gnome.org/show_bug.cgi?id=711799
2013-11-13 12:59:40 +01:00
Stef Walter
3e7a2cfda3 gio: Define cleanup scope and lists for gio tests
https://bugzilla.gnome.org/show_bug.cgi?id=711799
2013-11-13 12:59:39 +01:00
Stef Walter
ced68f1587 filter-streams: Cleanup custom classes in test
https://bugzilla.gnome.org/show_bug.cgi?id=711799
2013-11-13 12:59:39 +01:00
Stef Walter
fb8557bdfc gio/tests: Prevent random gio modules from screwing up these tests
https://bugzilla.gnome.org/show_bug.cgi?id=711799
2013-11-13 12:59:39 +01:00
Stef Walter
f5c743c939 gfileinfo: Cleanup memory
https://bugzilla.gnome.org/show_bug.cgi?id=711799
2013-11-13 12:59:39 +01:00
Stef Walter
716068850d gcancellable: Free up GPrivate in right cleanup context
https://bugzilla.gnome.org/show_bug.cgi?id=711799
2013-11-13 12:59:39 +01:00
Stef Walter
5da529ae0f gtask: Cleanup thread pool
https://bugzilla.gnome.org/show_bug.cgi?id=711799
2013-11-13 12:59:39 +01:00
Stef Walter
c654161f03 gsocketconnection: Cleanup global data
https://bugzilla.gnome.org/show_bug.cgi?id=711799
2013-11-13 12:59:39 +01:00
Stef Walter
e53479cf7c gresolver: Cleanup global data
https://bugzilla.gnome.org/show_bug.cgi?id=711799
2013-11-13 12:59:39 +01:00
Stef Walter
c7144072c3 glocalfile: Cleanup global data
https://bugzilla.gnome.org/show_bug.cgi?id=711799
2013-11-13 12:59:39 +01:00
Stef Walter
f741871031 giomodule: Allow overriding source directory gio modules are loaded from
When testing (and valgrinding) we need to have a known set of modules
loaded.

https://bugzilla.gnome.org/show_bug.cgi?id=711801
2013-11-13 12:59:38 +01:00
Stef Walter
812320d46a giomodule: Cleanup global data
https://bugzilla.gnome.org/show_bug.cgi?id=711799
2013-11-13 12:59:38 +01:00
Stef Walter
a95b8d5ebf gioenumtypes: Push enum GTypes onto cleanup list
https://bugzilla.gnome.org/show_bug.cgi?id=711799
2013-11-13 12:59:38 +01:00
Stef Walter
f4bc304e5c gdbus: Cleanup global static data
https://bugzilla.gnome.org/show_bug.cgi?id=711799
2013-11-13 12:59:38 +01:00
Stef Walter
6cc9926a1e gio: Define cleanup scope and list for libgio
https://bugzilla.gnome.org/show_bug.cgi?id=711799
2013-11-13 12:59:38 +01:00
Ryan Lortie
ce35c08c57 Revert "gdbus-connection-loss: Fix leak in test"
This reverts commit 670379b26f.

This is causing distcheck to fail and will have to be revisited later.
2013-11-12 00:05:09 -05:00
Ryan Lortie
5c4f3f4dab gsettings test: fix srcdir != builddir
Just copy the schemas to the builddir and compile them in place instead
of trying to mess around with creating the compiled file in a different
dir.  This solves issues in the summary/description testcase when
GSettings expects the usual situation of having the .xml files present
in the same directory.
2013-11-12 00:05:04 -05:00
Stef Walter
1e5e3b64a8 gsubprocess: Fix a number of leaks and a segfault
Fixed a number of leaks in gsubprocess, as well as a segfault
that was hidden by never calling g_subprocess_communicate_state_free().

https://bugzilla.gnome.org/show_bug.cgi?id=711803
2013-11-11 17:41:39 +01:00
Stef Walter
a638be8a79 Revert "giomodule: Fix leaks in module loading"
This reverts commit dc72039c16.

This depends on a patch that allows GTypeModule to be finalized.
Lets put this back in bugzilla until that gets in.
2013-11-11 17:17:10 +01:00
Chun-wei Fan
0212ab6182 Tests: Fix up the expected messages
There was an expected messages that was not in the form that GLib on
Windows actually produces, which causes some test to fail.  Fix this up.

https://bugzilla.gnome.org/show_bug.cgi?id=711047
2013-11-11 22:40:57 +08:00
Chun-wei Fan
b27a2d436b gio/tests/gsubprocess.c: Fix on Windows
We need to check for the correct line endings on Windows (\r\n) for the
echo tests and currently need to skip the test_echo_eof test there, as
it depends on the cat utility that is not normally found on Windows, and
using an external installation of cat via MSYS or Cygwin would render the
test program to hang as cat waits for user input.

https://bugzilla.gnome.org/show_bug.cgi?id=711047
2013-11-11 22:38:05 +08:00
Dan Winship
fff14a5b7c gcancellable: don't use g_cancellable_connect() in GCancellableSource
g_cancellable_connect() is documented as calling its callback only
once, but GCancellableSource should trigger every time the cancellable
is cancelled.

https://bugzilla.gnome.org/show_bug.cgi?id=710691
https://bugzilla.gnome.org/show_bug.cgi?id=711286
2013-11-11 09:28:07 -05:00
Stef Walter
670379b26f gdbus-connection-loss: Fix leak in test
https://bugzilla.gnome.org/show_bug.cgi?id=711802
2013-11-11 08:46:45 +01:00
Stef Walter
14b27eaab8 gdbus-introspection: Fix leaks in tests
https://bugzilla.gnome.org/show_bug.cgi?id=711802
2013-11-11 08:46:33 +01:00
Stef Walter
dc72039c16 giomodule: Fix leaks in module loading
https://bugzilla.gnome.org/show_bug.cgi?id=711798
2013-11-11 07:22:48 +01:00
Stef Walter
91c8fb82fe gdbus-connection: Fix leaks in tests
https://bugzilla.gnome.org/show_bug.cgi?id=711802
2013-11-11 07:12:53 +01:00
Stef Walter
f80e2695e1 gdbus-connection-slow: Fix leak in tests
https://bugzilla.gnome.org/show_bug.cgi?id=711802
2013-11-11 07:12:37 +01:00
Stef Walter
0d51ff79ed gdbus-connection: Fix use after free in test
https://bugzilla.gnome.org/show_bug.cgi?id=711802
2013-11-11 07:12:26 +01:00
Stef Walter
95526b5db5 gsubprocess: Fix leaks in tests
https://bugzilla.gnome.org/show_bug.cgi?id=711802
2013-11-11 07:12:18 +01:00
Stef Walter
fe3c878c53 gsubprocess: Fix error detection logic in tests
Various tests were depending on local_error being set by a callback
when it could never have been the case. Simplify async error detection
logic in those cases, and fix leak of GError.

https://bugzilla.gnome.org/show_bug.cgi?id=711802
2013-11-11 07:12:00 +01:00
Stef Walter
78ad171da9 g-icon: Fix memory leak in test
https://bugzilla.gnome.org/show_bug.cgi?id=711802
2013-11-11 07:11:29 +01:00
Stef Walter
faafd4c051 contexts: Fix memory leak in test
https://bugzilla.gnome.org/show_bug.cgi?id=711802
2013-11-11 07:11:22 +01:00
Stef Walter
438f7110f9 data-output-stream: Fix some access after free
The memory pointed to by a GMemoryOutputStream can be realloc'd

https://bugzilla.gnome.org/show_bug.cgi?id=711802
2013-11-11 07:11:14 +01:00
Stef Walter
72171240cc buffered-output-stream: Fix some access after free
The memory pointed to by a GMemoryOutputStream can be realloc'd

https://bugzilla.gnome.org/show_bug.cgi?id=711802
2013-11-11 07:10:59 +01:00
Stef Walter
419b47e166 gtestdbus: Fix leak of GMainLoop
https://bugzilla.gnome.org/show_bug.cgi?id=711808
2013-11-11 06:55:09 +01:00