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
Ross Lagerwall
3b9ad6e6ef
gio: Update GMemoryOutputStream length after truncate
...
For GMemoryOutputStream, update valid_len when truncating so that
g_memory_output_stream_get_data_size () returns the correct result.
https://bugzilla.gnome.org/show_bug.cgi?id=720080
2013-12-15 11:54:39 -05:00
Matthias Clasen
c34cc2348c
Simplify subprocesses in tests
...
Use the new way of running tests in a subprocess without
registering extra 'subprocess' test cases where appropriate.
2013-12-15 11:50:00 -05:00
Chun-wei Fan
3af58d2e9f
gio/gdbusaddress: Clean up Win32 code a bit
...
Combine duplicate parts into one, as the symbol used by RunDLL under x64
is the same for either Visual C++ or MinGW-64
2013-12-12 18:00:52 +08:00
Martin Pitt
e6c86d58f2
gdesktopappinfo: Add missing annotations
...
Add missing (allow-none) annotations to
g_desktop_app_info_launch_uris_as_manager(). Tested with
python -c "from gi.repository import GLib, Gio; Gio.DesktopAppInfo.new('gcalctool.desktop').launch_uris_as_manager([], None, GLib.SpawnFlags.SEARCH_PATH|GLib.SpawnFlags.STDOUT_TO_DEV_NULL, None, None, None, None)"
which is necessary to do a launch_uris() without leaking stdout.
https://launchpad.net/bugs/1259721
2013-12-11 13:17:10 +01:00
Manuel Bachmann
36ef409591
gdbus-codegen: look for deps in correct path under win32
...
codegen.py and friends get installed in "share/glib-2.0",
so look for them there.
https://bugzilla.gnome.org/show_bug.cgi?id=702862
2013-12-11 11:02:33 +01:00
Stef Walter
e6456bcfb6
gdbus-connection: Work around race in connection tests
...
GDBusConnection cleanup is inherently racy due to its use of worker
threads. Put tests that expect a NULL G_BUS_TYPE_SESSION singleton
as the first tests to work around cleanup races.
https://bugzilla.gnome.org/show_bug.cgi?id=719837
2013-12-11 07:32:03 +01:00
Lars Uebernickel
0f1579e62c
g_settings_get: only check for non-copying format string
...
396d40af
introduced a redundant call to g_variant_check_format_string().
Checking whether the format string copies all values is enough.
https://bugzilla.gnome.org/show_bug.cgi?id=719979
2013-12-09 15:51:56 +01:00