Ryan Lortie
c09cfc1c8a
GFile: fix uninitialised variable
...
clang cause the fact that some of our 'goto out;' cases cause use to try
and free an uninitialised GString. Fix that up.
2014-01-02 12:54:12 -05:00
Ryan Lortie
51b3dd7332
GDBusConnection: don't write to stdout
...
When losing the D-Bus connection, we would write to stdout about it just
before killing ourselves with SIGTERM. We're a library, so we should
probably use stderr instead.
https://bugzilla.gnome.org/show_bug.cgi?id=721324
2014-01-02 10:08:55 -05:00
Ryan Lortie
8976175ba9
gsettings: tweak test for last commit
...
The last commit changed the behaviour of child objects of delayed
GSettings. Adjust the testcase accordingly.
2014-01-02 01:55:07 -05:00
Ryan Lortie
c7636ce64b
g_settings_get_child(): inherit backend
...
Part of the purpose of g_settings_get_child() was that it could be used
after you delay() a GSettings object, and then apply() all of the
settings together. In order for that to work, we need to share the
backend.
https://bugzilla.gnome.org/show_bug.cgi?id=720891
2014-01-02 01:50:40 -05:00
Matthias Clasen
11ddb843b9
Make /contenttype/tree test work installed
...
The x-content/win32-software type is only recognized if
the autorun.exe file is executable. Since the file is installed
as data, we need to fix up its permissions in an
install-data-hook.
2014-01-01 22:30:24 -05:00
Matthias Clasen
dba1ae12a8
Avoid a compiler warning
2014-01-01 22:01:15 -05:00
Colin Walters
97d9138f6c
gio/tests: Fix usage of BUILT_SOURCES
2014-01-01 19:05:34 -05:00
Matthias Clasen
680c348bb4
Add missing includes
...
config.h needs to be included in every source file, first.
2014-01-01 17:59:21 -05:00
Matthias Clasen
2299bcd88d
Improve GResourceFile test coverage
2014-01-01 17:59:21 -05:00
Matthias Clasen
3eeeb7aaa7
Improve gsettings test coverage
2014-01-01 17:59:21 -05:00
Matthias Clasen
1041fc2190
Improve gdbus test coverage
2014-01-01 17:59:21 -05:00
Matthias Clasen
df3ac947ac
Improve converter test coverage
2014-01-01 17:59:21 -05:00
Matthias Clasen
354ae1d61c
Add tests for remote actions
...
This improves the GApplication test coverage.
2014-01-01 17:59:21 -05:00
Matthias Clasen
8aeb391a77
Improve GIOModule test coverage
...
Add a dedicated test for GIOModule.
2014-01-01 17:59:21 -05:00
Matthias Clasen
7bea4bd89a
Correct a doc comment
2014-01-01 17:59:21 -05:00
Matthias Clasen
5bcbb98f45
GIOModule: Add some more details to the docs
2014-01-01 17:59:21 -05:00
Matthias Clasen
0356d7f4c3
Fix a typo in a comment
...
The D-Bus interface is org.freedesktop.DBus.Peer, not
org.freedesktop.DBus.
2014-01-01 17:59:21 -05:00
Matthias Clasen
b5ba22f163
Add a generic property test
...
This test is inspired by its namesake in GTK+. We instantiate
all types, and check the default values of their properties,
with some exceptions for types that are known not to work.
2014-01-01 17:59:21 -05:00
Matthias Clasen
290b46cd24
GTlsPassword: Make declared defaults match
...
String properties typically start out with a value of NULL.
No reason to deviate from that convention here.
2014-01-01 17:59:20 -05:00
Matthias Clasen
3a37e403e6
Make GFileIcon more robust
...
No reason not to survive g_object_unref (g_object_new (...))
2014-01-01 17:59:20 -05:00
Matthias Clasen
34de9189f6
Make GEmblem more robust
...
No reason not to survive g_object_unref (g_object_new (...)).
2014-01-01 17:59:20 -05:00
Matthias Clasen
62b28546af
Trivial formatting fixes
2014-01-01 17:59:20 -05:00
Matthias Clasen
6c75ba2b90
Add tests for x-content type sniffing
...
This test exercises the tree matching parts of gcontenttype.c
2014-01-01 17:59:20 -05:00
Matthias Clasen
159459bc2d
Simplify fileattributematcher tests a bit
...
Just use assertions instead of pretty-printed error messages.
2014-01-01 17:59:20 -05:00
Matthias Clasen
3bbfd90880
Improve GApplicationCommandline test coverage
...
Add tests for many GApplicationCommandline apis to the
existing application tests.
2014-01-01 17:59:20 -05:00
Matthias Clasen
7846d6154a
Improve GSubprocess test coverage
...
Test the synchronous communicate functions.
2014-01-01 17:59:20 -05:00
Matthias Clasen
e021bb9101
Improve GInitable test coverage
...
This just adds a bit more variety to the uses of GInitiable
in other tests.
2014-01-01 17:59:20 -05:00
Jasper St. Pierre
0c87f71521
codegen: direction defaults to "in"
2013-12-31 15:39:02 -05:00
Antoine Jacoutot
fb21c8eaab
kqueue: fix a potential deadlock
...
In case an object is already monitored, we lock then return without
unlocking it which can then result in a self deadlock. So properly
unlock before returning.
https://bugzilla.gnome.org/show_bug.cgi?id=721074
2013-12-26 19:57:44 +01:00
Morten Welinder
c26c557908
gsubprocesslauncher: Use "env" instead of "environ"
...
The latter may come from system headers.
https://bugzilla.gnome.org/show_bug.cgi?id=721059
2013-12-26 07:37:17 -05:00
Matthias Scheler
091e466095
gio: Fix return of value from void function
...
https://bugzilla.gnome.org/show_bug.cgi?id=721034
2013-12-25 13:57:56 -05:00
Ryan Lortie
ee5dab6bb5
gdbus tool: print GVariant errors in context
...
Use g_variant_parse_error_print_context() to format the error message
from the GVariant parser.
There is a slightly dubious interaction with the "parse me harder"
functionality here. We're probably going to have to deal with that
separately.
https://bugzilla.gnome.org/show_bug.cgi?id=715028
2013-12-22 11:41:45 -05:00
Ryan Lortie
94a89f6c2f
gapplication(1): print GVariant errors in context
...
Use g_variant_parse_error_print_context() to format the error message
from the GVariant parser.
https://bugzilla.gnome.org/show_bug.cgi?id=715028
2013-12-22 11:41:44 -05:00
Ryan Lortie
420f90d849
gsettings tool: print GVariant errors in context
...
Use g_variant_parse_error_print_context() to format the error message
from the GVariant parser.
https://bugzilla.gnome.org/show_bug.cgi?id=715028
2013-12-22 11:41:43 -05:00
Ryan Lortie
3f41e49285
Use POSIX-specified <poll.h> over <sys/poll.h>
...
POSIX specifies that <poll.h> is the correct header to include for
poll(), so let's do that instead.
https://bugzilla.gnome.org/show_bug.cgi?id=141251
2013-12-22 11:33:07 -05:00
Matthias Clasen
864d960d75
More settings backend tests
...
This adds some more test coverage around writability changes
in the keyfile and delayed settings backends.
2013-12-22 00:44:56 -05:00
Matthias Clasen
41a8296e11
GKeyfileSettingsBackend: Use a directory monitor
...
GKeyfileSettingsBackend was using a file monitor to monitor
the parent directory of its keyfile.
2013-12-22 00:43:44 -05:00
Matthias Clasen
3c873e7617
More test coverage for settings backends
2013-12-21 16:49:52 -05:00
Matthias Clasen
dac1ad66eb
Improve gsettings test coverage
...
Deal with corner cases around delay.
2013-12-21 13:22:00 -05:00
Matthias Clasen
fc828c4de8
contenttype tests: better assertions
...
I recently had to track down why these tests failed. Turned
out that some rogue package on my system had installed mime
types that declared all files with 3 letter names to be
'chemical/x-turbomole-vibrational'.
This change will make it more obvious what is going on by
mentioning the mime types in the assertion message.
2013-12-21 13:22:00 -05:00
Matthias Clasen
6d8ac1125e
Slightly improve coverate for notification tests
2013-12-21 13:22:00 -05:00
Matthias Clasen
5ab9e21d7a
Improve test coverage for GPropertyAction
2013-12-21 13:22:00 -05:00
Matthias Clasen
f9747d07c8
Test some gsettings corner case
...
Setting a strv to NULL was not tested before.
2013-12-21 13:22:00 -05:00
Bastien Nocera
c300079f13
gdbus-codegen: Fix crasher in goa-using apps
...
When replacing a version of goa-daemon (from gnome-online-accounts)
by a newer version with some added interfaces, evolution-data-server
and the gvfs-goa volume monitor might crash as there's no interface
definition for this new interface.
Work-around this by returning earlier from the _notify() implementation,
rather than accessing invalid memory.
https://bugzilla.gnome.org/show_bug.cgi?id=720539
2013-12-18 10:53:01 +01:00
Matthias Clasen
5ccdf2b86a
Expand the truncate tests
...
Check that the data is expanded with zeros.
2013-12-15 21:07:12 -05:00
Matthias Clasen
453a69534c
Update tests for new truncate behavior
2013-12-15 21:07:12 -05:00
Stef Walter
baed90af43
gdbus-export: Fix leaks in tests
...
https://bugzilla.gnome.org/show_bug.cgi?id=711802
2013-12-15 21:07:11 -05:00
Stef Walter
db6a297d9e
gdbus-auth: Fix leaks in tests
...
https://bugzilla.gnome.org/show_bug.cgi?id=711802
2013-12-15 21:07:11 -05:00
Colin Walters
2ad121ab16
gsubprocesslauncher: Annotate g_subprocess_launcher_spawnv()
...
Needs to be an array.
2013-12-15 20:44:53 -05:00
Matthias Clasen
0b486a49e4
Fix up gsettings test
2013-12-15 18:50:49 -05:00