commit 544816bf6ec4bc8dd2296624bd77ca0fe08a59e0 Author: Matthias Clasen Date: Mon Jun 17 08:40:33 2013 -0400 2.37.2 NEWS | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) commit d929eb64eeac8947e966e817e3afc7f7aff8672b Author: Matthias Clasen Date: Mon Jun 17 12:39:56 2013 -0400 Try to make the testgdate test hobble along a little longer tests/testgdate.c | 44 +++++++++++++++++++++++--------------------- 1 file changed, 23 insertions(+), 21 deletions(-) commit 1eefcb4d66479ece8a7e6932cf65dee60d0c5984 Author: Matthias Clasen Date: Sun Jun 16 09:28:59 2013 -0400 Plug a small memory leak g_test_trap_assertions was leaking the process_id string. glib/gtestutils.c | 1 + 1 file changed, 1 insertion(+) commit 910732ea7e6e4eaf42a33c32d25899b10afefa81 Author: Emmanuele Bassi Date: Fri May 3 16:44:36 2013 -0700 tests/binding: Ensure that the binding goes away Use weak pointers so that we can check that the GBinding instance goes away when it should. https://bugzilla.gnome.org/show_bug.cgi?id=698018 gobject/tests/binding.c | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) commit d1959e4faae93bbe22bb95c99850b515611cb578 Author: Emmanuele Bassi Date: Thu May 16 22:34:55 2013 +0100 binding: Use hash table as a set gobject/gbinding.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) commit 25a3c8720cb13944eb051775b89838540d4c5760 Author: Emmanuele Bassi Date: Thu May 16 22:28:54 2013 +0100 binding: Make unbind() release the reference on GBinding The automatic memory management of GBinding is not optimal for high order languages with garbage collectors semantics. If we leave the binding instance inert but still referenced it will be leaked, so one solution that does not throw away the baby of C convenience with the bathwater of language bindability is to have unbind() perform an implicit unref(). Hopefully, C developers will read the documentation and especially the note that says that after calling unbind() the reference count on the GBinding instance is decreased. https://bugzilla.gnome.org/show_bug.cgi?id=698018 gobject/gbinding.c | 81 ++++++++++++++++++++++++++++--------------------- gobject/tests/binding.c | 4 +-- 2 files changed, 48 insertions(+), 37 deletions(-) commit 270d73a1e08162de9099f6058b20ffe4d026d4e6 Author: Emmanuele Bassi Date: Fri May 3 15:51:43 2013 -0700 docs: Fix g_binding_unbind() in the API reference docs/reference/gobject/gobject-sections.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 236ee6556188d3b1f3055d7d2ff65ea6cc824655 Author: Krishnababu Krothapalli Date: Tue Jun 11 14:23:53 2013 +0530 Updated Telugu Translations po/te.po | 301 +++++++++++++++++++++++++++++++-------------------------------- 1 file changed, 150 insertions(+), 151 deletions(-) commit f1f7c97e084c8cecd10a5d05ea2022bf20deeada Author: Shankar Prasad Date: Tue Jun 11 11:52:33 2013 +0530 updated kn translations po/kn.po | 235 +++++++++++++++++++++++++++++++-------------------------------- 1 file changed, 116 insertions(+), 119 deletions(-) commit 9d9532bdd358a38c1b878be91702af5a8b82a5aa Author: Colin Walters Date: Mon Jun 10 13:17:08 2013 -0400 gmain: Document more use cases of g_main_context_wakeup() https://bugzilla.gnome.org/show_bug.cgi?id=701878 glib/gmain.c | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) commit 8a37af7f0ec434c8e283d3b8da4e4833e767574e Author: Benjamin Otte Date: Sat Jun 8 21:59:59 2013 +0200 tests: Add a test for a specific invariant See the documentation in the test. The invariant is used by gnome-test-runner. https://bugzilla.gnome.org/show_bug.cgi?id=701878 glib/tests/mainloop.c | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) commit 8474ad7f6ac9ee3ea8bbadf162abb2493bce2af9 Author: Marek Černocký Date: Mon Jun 10 21:31:36 2013 +0200 Updated Czech translation po/cs.po | 568 +++++++++++++++++++++++++++++---------------------------------- 1 file changed, 263 insertions(+), 305 deletions(-) commit 57eca445ca1080be8278e1d8ab432dde3bdab648 Author: Piotr Drąg Date: Mon Jun 10 20:32:57 2013 +0200 Updated Polish translation po/pl.po | 246 +++++++++++++++++++++++++++++---------------------------------- 1 file changed, 114 insertions(+), 132 deletions(-) commit c1e32a5c59cf43d86c6e1b50ba570e01a549c026 Author: Ryan Lortie Date: Mon Jun 10 11:14:17 2013 -0400 GObject: turn add-property-after-init to a warning We have turned up enough cases of this being done (including GTK API allowing apps to do this to GtkSettings well after it has been instantiated) that it is clear that we cannot really break this feature while claiming to be backwards compatible. For that reason, it becomes a warning rather than a critical (ie: it is still well-defined behaviour, but you are discouraged from doing it). The intention is to keep this feature for at least the next while. A given GObjectClass will be able to avoid using GParamSpec pool for as long as you don't install properties after init. If you do that, you will get a warning and we will devolve to using GParamSpecPool. https://bugzilla.gnome.org/show_bug.cgi?id=698614 gobject/gobject.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit bbf9f5e97c49f0f24476bfb7e457f7f60789ea89 Author: Nilamdyuti Goswami Date: Mon Jun 10 14:58:13 2013 +0530 Assamese translation updated po/as.po | 265 +++++++++++++++++++++++++++++++-------------------------------- 1 file changed, 130 insertions(+), 135 deletions(-) commit 3fdbfe7c0a7585c9c2dd0dc4976883e324c6e957 Author: Fran Diéguez Date: Mon Jun 10 10:31:01 2013 +0200 Updated Galician translations po/gl.po | 222 +++++++++++++++++++++++++++++++-------------------------------- 1 file changed, 108 insertions(+), 114 deletions(-) commit 12958ed5cc08e3222054edbdb203fdfe4b2f5d1f Author: Ryan Lortie Date: Sat Jun 8 17:01:56 2013 -0400 gio/tests: sort tests in the Makefile.am ...to make it clear where people should add theirs, reducing the chance of conflicts caused by everyone always adding at the end. gio/tests/Makefile.am | 138 +++++++++++++++++++++++++------------------------- 1 file changed, 69 insertions(+), 69 deletions(-) commit afc8b1020aaa3a8acd7e8328d148748d3a5adfe6 Author: Ryan Lortie Date: Mon Apr 29 13:37:55 2013 -0700 GDesktopAppInfo: support DBusActivatable Support the sender-side of the freedesktop application specification for cases that we find 'DBusActivatable=true' in the desktop file. https://bugzilla.gnome.org/show_bug.cgi?id=699259 gio/gdesktopappinfo.c | 219 +++++++++++++++++++++++++++++++++++++++----------- glib/gkeyfile.h | 1 + 2 files changed, 172 insertions(+), 48 deletions(-) commit 0aaac55d1474dde49a5ac664dda16f0f6deca9b6 Author: Matthias Clasen Date: Thu Jun 6 00:05:41 2013 -0400 Update link to documentation gio/gapplicationimpl-dbus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 6965b721b1c7ec571f54065ddd1ef4ee1f7a4c3d Author: Dan Winship Date: Wed Jun 5 23:49:31 2013 -0300 tests: fix and re-add the broken test gio/tests/inet-address.c | 2 ++ 1 file changed, 2 insertions(+) commit 1dac271ace5f4ca690ac2ce13864b444359c54ce Author: Matthias Clasen Date: Wed Jun 5 21:50:52 2013 -0400 Remove a failing testcase One of the recently added examples seems wrong. Drop it. gio/tests/inet-address.c | 2 -- 1 file changed, 2 deletions(-) commit 76a10a572c67387533fa1e34796e39e3b7e70c30 Author: Colin Walters Date: Wed Jun 5 18:05:12 2013 -0400 GFileEnumerator: Add some documentation about ordering Kind of a gratuitious gaping hole in the docs... https://bugzilla.gnome.org/show_bug.cgi?id=701680 gio/gfileenumerator.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) commit 74a034028a964a25cc11318caf0b3c6d9a47bbcc Author: Ryan Lortie Date: Wed Jun 5 15:51:13 2013 -0400 tests: add a few more invalid IPv6 address tests https://bugzilla.gnome.org/show_bug.cgi?id=701401 gio/tests/inet-address.c | 10 ++++++++++ 1 file changed, 10 insertions(+) commit 59ed934b055229ff2da96f96c772a060dc0f4092 Author: Dan Winship Date: Sun Jun 2 18:32:21 2013 -0300 ginetaddress: fix addr/string conversions on windows When parsing an address, we need to re-set "len" between IPv4 and IPv6, since WSAStringToAddress() might set it to sizeof(struct sin_addr) when trying to parse the string as IPv4, even if it fails. Also, we need to make sure to not pass strings to WSAStringToAddress() that it will accept but that we don't want it to. When stringifying an address, we need to clear the sockaddr before filling it in, so we don't accidentally end up with an unwanted scope_id or the like. https://bugzilla.gnome.org/show_bug.cgi?id=701401 gio/ginetaddress.c | 29 +++++++++++++++++++++-------- 1 file changed, 21 insertions(+), 8 deletions(-) commit 9f1a0b57cdca9eb2f9d8a8ecd414369df739fb8d Author: Colin Walters Date: Sun May 12 07:28:01 2013 +0100 Ensure g_file_copy() does not temporarily expose private files Previously, g_file_copy() would (on Unix) create files with the default mode of 644. For applications which might at user request copy arbitrary private files such as ~/.ssh or /etc/shadow, a world-readable copy would be temporarily exposed. This patch is suboptimal in that it *only* fixes g_file_copy() for the case where both source and destination are instances of GLocalFile on Unix. The reason for this is that the public GFile APIs for creating files allow very limited control over the access permissions for the created file; one can either say a file is "private" or not. Fixing this by adding e.g. g_file_create_with_attributes() would make sense, except this would entail 8 new API calls for all the variants of _create(), _create_async(), _replace(), _replace_async(), _create_readwrite(), _create_readwrite_async(), _replace_readwrite(), _replace_readwrite_async(). That can be done as a separate patch later. https://bugzilla.gnome.org/show_bug.cgi?id=699959 gio/gfile.c | 24 +++++++++++++++++++++++- gio/glocalfile.c | 23 ++++++++++++++--------- gio/glocalfile.h | 2 ++ gio/glocalfileoutputstream.c | 36 ++++++++++++++++++++++-------------- gio/glocalfileoutputstream.h | 2 ++ 5 files changed, 63 insertions(+), 24 deletions(-) commit 02aaef5a4dd92fe3a3f3a7c4ccebf22ca1ba2644 Author: Colin Walters Date: Thu May 9 00:01:59 2013 +0100 g_file_copy(): Clean up logic for info query Previously, we called g_file_query_info() *again* on the source at the very end of the copy. This has the lame semantics that if the source happened to be deleted, we would fail to apply attributes to the destination. This could even be a security flaw. This commit changes things so that we query info from the source *stream* after opening - i.e. on Unix we use the proper fstat() and friends. That way we operate more atomically. https://bugzilla.gnome.org/show_bug.cgi?id=699959 gio/gfile.c | 128 +++++++++++++++++++++++++++++++++++++++++------------------- 1 file changed, 88 insertions(+), 40 deletions(-) commit b4df86fa193d54c7604bf90aa88824e220b92683 Author: Ryan Lortie Date: Mon Apr 29 13:30:02 2013 -0700 GApplication: implement fd.o application spec The freedesktop application specification is largely overlapping the GLib application D-Bus interface but implementing it will allow for applications to be launched directly from desktop files, which we want. We keep the old Gtk interface for compatibility reasons and because it has some functionality not in the freedesktop spec (Busy state, CommandLine, etc.). https://bugzilla.gnome.org/show_bug.cgi?id=699259 gio/gapplicationimpl-dbus.c | 78 +++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 76 insertions(+), 2 deletions(-) commit 7baea0aee559c70139e03421487d5aa213a547c0 Author: Ryan Lortie Date: Thu May 9 09:30:38 2013 -0400 GApplication: set prgname to appid for services Since services are based on D-Bus activation and desktop files are supposed to be named like the busname for DBusActivatable applications and since gnome-shell wants wmclass equal to the desktop file name, we therefore want wmclass equal to the application ID in this case. wmclass is determined from the prgname, which is otherwise pretty pointless to set to some random thing in $(libexec) for a D-Bus service, so set that to the appid. This means that for D-Bus services, the following things are now all the same: - application ID - prgname - wmclass property set on all windows - desktop file name - well-known bus name There are not many applications running as D-Bus services at present so this shouldn't impact anybody except for gnome-clocks (where this change will be fixing a bug) and gnome-terminal. https://bugzilla.gnome.org/show_bug.cgi?id=699259 gio/gapplication.c | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) commit 25d6560588bee636466ad62127f306a5d68bb872 Author: Daniel Mustieles Date: Wed Jun 5 18:28:48 2013 +0200 Updated Spanish translation po/es.po | 51 ++++++++++++++++++++++----------------------------- 1 file changed, 22 insertions(+), 29 deletions(-) commit 27c2864843f40d6a89eb9b0609f47216dd44058c Author: ManojKumar Giri Date: Wed Jun 5 13:08:46 2013 +0530 Updated Odia Translation. po/or.po | 51 ++++++++++++++++++++++----------------------------- 1 file changed, 22 insertions(+), 29 deletions(-) commit 5b872bb4fdc5118ea19172d3654131918ad676b4 Author: Sandeep Sheshrao Shedmake Date: Wed Jun 5 12:28:00 2013 +0530 Updated Marathi Translations po/mr.po | 470 +++++++++++++++++++++++++++++++-------------------------------- 1 file changed, 233 insertions(+), 237 deletions(-) commit 78ebab5bea1982a49cadadb36aa9ab0b3485d2fa Author: Sweta Kothari Date: Wed Jun 5 10:48:55 2013 +0530 Updated Gujarati Translations po/gu.po | 51 ++++++++++++++++++++++----------------------------- 1 file changed, 22 insertions(+), 29 deletions(-) commit 9d0c17b50102267a5029b58b1f44efbad82d8f03 Author: Ryan Lortie Date: Tue Jun 4 09:48:12 2013 -0400 g_file_set_contents(): don't fsync on ext3/4 ext3 and ext4 (for quite some time) with default mount options don't need fsync() to ensure safety of replace-by-rename. Stop doing that for these filesystems. Note: this patch also impacts ext2, which is probably not safe, but I don't know of any way to check ext2. vs the others because they all have the same magic numbers (short of opening /proc/mount). This patch assumes that if BTRFS_SUPER_MAGIC is defined then so will be EXT3_SUPER_MAGIC. https://bugzilla.gnome.org/show_bug.cgi?id=701560 glib/gfileutils.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) commit 16b26231ca7d807a5bb52228eb4f2cae4427edde Author: Dan Winship Date: Sat May 25 11:09:43 2013 -0300 gio/tests/inet-address: fix to work on OS X OS X's getaddrinfo() only supports IPv6 scope IDs that are interface names, not numbers. So use if_indextoname() to get the name of an interface and construct an address using that. https://bugzilla.gnome.org/show_bug.cgi?id=700123 configure.ac | 2 +- gio/tests/inet-address.c | 28 ++++++++++++++++++++++++---- 2 files changed, 25 insertions(+), 5 deletions(-) commit c828aef014082c06f6a697ef4d0b92054d82b727 Author: Ryan Lortie Date: Mon Jun 3 22:55:20 2013 -0400 g_file_set_contents: change {posix_ => }fallocate Use fallocate() instead of posix_fallocate() so that we just fail instead of getting the emulated version from the libc. https://bugzilla.gnome.org/show_bug.cgi?id=701560 configure.ac | 2 +- glib/gfileutils.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) commit fc98c13fdec0e5ea7d8827be0eb1f1add31ad946 Author: Ryan Lortie Date: Mon Jun 3 17:59:29 2013 -0400 g_file_set_contents(): fix simple logic error CI FTW. glib/gfileutils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit e40435e834b4da4e791dd6c67ffc8bf285b777fd Author: Ryan Lortie Date: Mon Jun 3 17:49:06 2013 -0400 g_file_set_contents(): use unistd instead of stdio Use a normal write() system call instead of fdopen() and fwrite(). This will definitely work on UNIX system and should work on Windows as well... As an added bonus, we can use g_close() now as well. https://bugzilla.gnome.org/show_bug.cgi?id=701560 glib/gfileutils.c | 52 +++++++++++++++++++--------------------------------- 1 file changed, 19 insertions(+), 33 deletions(-) commit c152ceba090840be100ae6eeb90b639b85420ec7 Author: Ryan Lortie Date: Mon Jun 3 16:16:25 2013 -0400 g_file_set_contents(): don't allocate display name g_file_set_contents() sets a GError in the event of various failures that count occur. It uses g_filename_display_name() in order to get the filename to include in the messages. Factor out the error handling to make it easier to allocate the display name only when we need it (instead of allocating it every time). https://bugzilla.gnome.org/show_bug.cgi?id=701560 glib/gfileutils.c | 124 ++++++++++++++++++++---------------------------------- 1 file changed, 46 insertions(+), 78 deletions(-) commit d3be43fcc5165b7680c9073438ad60a3652c1703 Author: Ryan Lortie Date: Mon Jun 3 15:43:01 2013 -0400 g_file_set_contents(): use posix_fallocate() Extents-based filesystems like knowing in advance how much data will be written to a file in order to prevent fragmentation. If we have it, use posix_fallocate() before writing data in g_file_set_contents(). https://bugzilla.gnome.org/show_bug.cgi?id=701560 configure.ac | 2 +- glib/gfileutils.c | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) commit b9350597384502e51e800d9bcfea32d719b7b41b Author: Matej Urbančič Date: Mon Jun 3 21:37:49 2013 +0200 Updated Slovenian translation po/sl.po | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) commit 771c841b3d2ff10e36cfd103479ca57dc698be5e Author: Daniel Mustieles Date: Mon Jun 3 11:27:44 2013 +0200 Updated Spanish translation po/es.po | 48 ++++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) commit ebea942d955c383ab179db1473d58cee6b2dee54 Author: ManojKumar Giri Date: Mon Jun 3 13:48:33 2013 +0530 Updated Odia Translation. po/or.po | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) commit 72af6b0d5baa291210d603c366d232185ceae91f Author: Sweta Kothari Date: Mon Jun 3 13:30:48 2013 +0530 Updated Gujarati Translations po/gu.po | 48 ++++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) commit 9acc480d72e9140ec1fa34d780c6d924c7a71aec Author: Kjell Ahlstedt Date: Sun Jun 2 20:21:33 2013 +0200 Remove extra comma in gtestutils.h https://bugzilla.gnome.org/show_bug.cgi?id=701474 glib/gtestutils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit d0301080ee78c2f67ce04486da2ee3e7e123eece Author: Matthias Clasen Date: Sun Jun 2 20:00:21 2013 -0400 Improve GSettings test coverage gio/tests/gsettings.c | 100 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) commit b9406904a5d8a50a0608864160029e7bb07d04e2 Author: Matthias Clasen Date: Sun Jun 2 19:59:48 2013 -0400 Add a directory monitoring test gio/tests/Makefile.am | 1 + gio/tests/monitor.c | 184 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 185 insertions(+) commit e546eb016a15646be75b73c1eacf6c2b6d5f120b Author: Matthias Clasen Date: Sun Jun 2 14:37:19 2013 -0400 Remove some unused inotify code gio/inotify/inotify-kernel.c | 142 ++++++------------------------------------ gio/inotify/inotify-missing.c | 15 ----- 2 files changed, 20 insertions(+), 137 deletions(-) commit a62079e2e3270f6196a0744c532e72d38ab311b1 Author: Ryan Lortie Date: Sun Jun 2 09:53:06 2013 -0400 tests: Remove a leftover debug printf https://bugzilla.gnome.org/show_bug.cgi?id=701456 gio/tests/file.c | 1 - 1 file changed, 1 deletion(-) commit fc35c3487eb926417261035cfc834b0b716530e1 Author: Matthias Clasen Date: Sun Jun 2 01:47:19 2013 -0400 Improve unix stream test coverage gio/tests/unix-streams.c | 4 ++++ 1 file changed, 4 insertions(+) commit 8f655149e9d0bb48fc7ebb2c29bba13924f13056 Author: Matthias Clasen Date: Sun Jun 2 01:46:21 2013 -0400 Improve GAppInfo test coverage gio/tests/mimeapps.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) commit 0326f146fd3bbff74e7ca1e77bef814601c1a981 Author: Matthias Clasen Date: Sun Jun 2 01:44:49 2013 -0400 Improve GMemoryInputStream test coverage gio/tests/memory-input-stream.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) commit dcf5dea9225efd3ef60a23a5a0fcbbb1e95cc794 Author: Matthias Clasen Date: Sun Jun 2 01:44:15 2013 -0400 Improve GMenuModel test coverage gio/tests/gmenumodel.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) commit c40e0b59da5dba6af74f7778e77b01e7f7f48e15 Author: Matthias Clasen Date: Sun Jun 2 01:43:13 2013 -0400 Improve GFileAttributeMatcher test coverage gio/tests/g-file-info.c | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) commit 0753ae1235a3765339b4637db0ca0c89a66fb0e4 Author: Matthias Clasen Date: Sun Jun 2 01:42:28 2013 -0400 Improve GIcon test coverage gio/tests/g-icon.c | 118 ++++++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 107 insertions(+), 11 deletions(-) commit 49d39633d15427436a18e160f06aab12dce6f378 Author: Matthias Clasen Date: Sun Jun 2 01:41:50 2013 -0400 Improve test coverage for GZipCompressor gio/tests/converter-stream.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) commit 2f3f270fccaf92ae423864b5d35e61572137fda3 Author: Matthias Clasen Date: Sun Jun 2 01:41:09 2013 -0400 Improve test coverage for GBufferedOutputStream gio/tests/buffered-output-stream.c | 6 ++++++ 1 file changed, 6 insertions(+) commit 6a487eae569198c88ef799b637891a4ed53effae Author: Matthias Clasen Date: Sun Jun 2 01:40:39 2013 -0400 Trivial formatting fix gio/gbytesicon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 7977bb15de1f19e4f11484779c581a6c08ebdd03 Author: Matthias Clasen Date: Sat Jun 1 18:54:57 2013 -0400 Skip spawn tests when collecting coverage These tests break gcov's data collection, so don't link them against -lgov. See bug 682133. glib/tests/Makefile.am | 5 +++++ 1 file changed, 5 insertions(+) commit fed8ae38c3b43c8da693c624bb552c50d269af84 Author: Matthias Clasen Date: Sat Jun 1 00:36:16 2013 -0400 Improve test coverage a bit gio/tests/file.c | 20 ++++++++++++++++++++ gio/tests/memory-output-stream.c | 10 ++++++++++ 2 files changed, 30 insertions(+) commit c0f96bb27636de407a29c8ee30bb44a03c74a0fb Author: Matthias Clasen Date: Sat Jun 1 00:35:39 2013 -0400 mem-overflow: test malloc and realloc corner cases glib/tests/mem-overflow.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) commit 81be95fffbb8aed746fe6ceaa820fde10773e026 Author: Fran Diéguez Date: Sun Jun 2 00:25:33 2013 +0200 Updated Galician translations po/gl.po | 401 ++++++++++++++++++++++++++++++++------------------------------- 1 file changed, 204 insertions(+), 197 deletions(-) commit 79972d22ac7085c252b6714d7dffd10fb470db6b Author: Ryan Lortie Date: Sat Jun 1 11:38:10 2013 -0400 Fix failure to build exit-on-close gdbus test In the case that HAVE_DBUS_DAEMON was undefined (as in ostree where glib is built before D-Bus) this test was failing. Move it inside the HAVE_DBUS_DAEMON block. gio/tests/Makefile.am | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) commit 16ec6295806131103e1ba08f8b23f5b9bbe05adb Author: Ryan Lortie Date: Sat Jun 1 10:07:33 2013 -0400 glib.mk: Rework win32 test support Newer versions of automake (~1.13.1) seem to generate some new rules for testcases that get tripped up on our use of $(addsuffix) and $(strip) so take those out of the definition of TESTS on win32. glib.mk | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) commit 601a00fa2ac31da0595cfe572b04edcdded3ae86 Author: Ryan Lortie Date: Sat Jun 1 09:55:13 2013 -0400 Change a pair of TESTS = to TEST += tests/gobject/Makefile.am | 2 +- tests/refcount/Makefile.am | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit e042db0f83d73801a206cbaed1a49783355e0dd5 Author: Ryan Lortie Date: Fri May 31 22:33:22 2013 -0400 GSettings tests: reverse installed test complexity Remove the complications that were introduced in an attempt to make the gsettings and gschema-compile tests function as installed tests. These tests are designed (in large part for gsettings and entirely for gschema-compile) to test the in-tree tools and should not be testing the system versions. In the future we may want to move the use of the in-tree tools from the gsettings testcase into the Makefile and install the resulting files, allowing this testcase to run against those files, installed. gio/tests/gschema-compile.c | 9 +-------- gio/tests/gsettings.c | 46 ++++++++++++++++----------------------------- 2 files changed, 17 insertions(+), 38 deletions(-) commit f9eb9eed10b7123ef000e49be1290755b2d6ae8f Author: Ryan Lortie Date: Thu May 30 00:07:32 2013 -0400 Rework the build system for a new tests approach Perform a substantial cleanup of the build system with respect to building and installing testcases. First, Makefile.decl has been renamed glib.mk and substantially expanded. We intend to add more stuff here in the future, like canned rules for mkenums, marshallers, resources, etc. By default, tests are no longer compiled as part of 'make'. They will be built when 'make check' is run. The old behaviour can be obtained with --enable-always-build-tests. --disable-modular-tests is gone (because tests are no longer built by default). There is no longer any way to cause 'make check' to be a no-op, but that's not very useful anyway. A new glibtests.m4 file is introduced. Along with glib.mk, this provides for consistent handling of --enable-installed-tests and --enable-always-build-tests (mentioned above). Port our various test-installing Makefiles to the new framework. This patch substantially improves the situation in the toplevel tests/ directory. Things are now somewhat under control there. There were some tests being built that weren't even being run and we run those now. The long-running GObject performance tests in this directory have been removed from 'make check' because they take too long. As an experiment, 'make check' now runs the testcases on win32 builds, by default. We can't run them under gtester (since it uses a pipe to communicate with the subprocess) so just toss them in TESTS. Most of them are passing on win32. Things are not quite done here, but this patch is already a substantial improvement. More to come. Makefile.am | 17 +- Makefile.decl | 97 --- configure.ac | 28 +- gio/Makefile.am | 20 +- gio/fam/Makefile.am | 4 +- gio/fen/Makefile.am | 6 +- gio/gdbus-2.0/codegen/Makefile.am | 4 +- gio/glib-compile-schemas.c | 4 +- gio/inotify/Makefile.am | 6 +- gio/kqueue/Makefile.am | 6 +- gio/tests/Makefile.am | 726 +++++++++------------ gio/tests/appinfo.c | 6 + gio/tests/file.c | 2 +- gio/tests/gdbus-example-objectmanager-client.c | 2 +- gio/tests/gdbus-example-objectmanager-server.c | 2 +- gio/tests/gdbus-object-manager-example/Makefile.am | 37 +- gio/tests/gdbus-peer.c | 2 +- gio/tests/gdbus-test-fixture.c | 2 +- gio/tests/gschema-compile.c | 6 +- gio/tests/gsettings.c | 61 +- gio/win32/Makefile.am | 6 +- gio/xdgmime/Makefile.am | 4 +- glib.mk | 223 +++++++ glib/Makefile.am | 15 +- glib/gnulib/Makefile.am | 4 +- glib/libcharset/Makefile.am | 6 +- glib/pcre/Makefile.am | 4 +- glib/tests/Makefile.am | 194 +++--- glib/update-pcre/Makefile.am | 2 +- gmodule/Makefile.am | 8 +- gobject/Makefile.am | 14 +- gobject/tests/Makefile.am | 86 +-- gthread/Makefile.am | 6 +- m4macros/Makefile.am | 2 +- m4macros/glibtests.m4 | 28 + tests/Makefile.am | 296 ++++----- tests/gobject/Makefile.am | 124 ++-- tests/refcount/Makefile.am | 33 +- 38 files changed, 974 insertions(+), 1119 deletions(-) commit 210b1f8b4230b881d1c2e4a9e7dac571c967e091 Author: Ryan Lortie Date: Thu May 30 00:04:05 2013 -0400 Remove a bunch of lingering g_thread_init() After this patch, there is but one remaining use of g_thread_init(), which is in tests/slice-threadinit.c, a testcase dedicated to testing the functionality of gslice across a g_thread_init() boundary. This testcase is pretty meaningless these days... probably we should delete it. tests/asyncqueue-test.c | 2 -- tests/child-test.c | 3 --- tests/gobject/performance-threaded.c | 3 --- tests/mainloop-test.c | 4 +--- tests/onceinit.c | 2 -- tests/slice-test.c | 2 -- tests/thread-test.c | 1 - tests/threadpool-test.c | 2 -- 8 files changed, 1 insertion(+), 18 deletions(-) commit e66abbe2ef574b1ff5c36588bbac7267f04e5abe Author: Ryan Lortie Date: Wed May 29 23:49:30 2013 -0400 Some final g_test_build_filename() porting This should be the last users that need to be ported. For some of the oldschool non-gtester-ified tests, we call g_test_init() from main() because it is necessary in order to use g_test_build_filename(). gio/tests/appinfo-test.c | 2 +- gio/tests/desktop-app-info.c | 2 +- glib/tests/keyfile.c | 2 +- glib/tests/spawn-singlethread.c | 2 +- tests/iochannel-test.c | 11 +++-------- tests/module-test.c | 17 ++++++----------- tests/unicode-caseconv.c | 10 +++------- tests/unicode-encoding.c | 12 ++++-------- 8 files changed, 20 insertions(+), 38 deletions(-) commit d7b3e558cfc91b1eaee80b156ad358774ded1c34 Author: Ryan Lortie Date: Wed May 29 23:43:26 2013 -0400 Move a pair of gobject tests to tests/gobject/ testgobject.c and timeloop-closure.c are the only two tests in the toplevel tests/ directory that depend on gobject, so move them to tests/gobject/ along with the other gobject tests. Both of these were in noinst_PROGRAMS and not TESTS, so keep them that way when we move them. tests/Makefile.am | 7 +- tests/gobject/Makefile.am | 6 +- tests/gobject/testgobject.c | 429 +++++++++++++++++++++++++++++++++++++++ tests/gobject/timeloop-closure.c | 220 ++++++++++++++++++++ tests/testgobject.c | 429 --------------------------------------- tests/timeloop-closure.c | 220 -------------------- 6 files changed, 656 insertions(+), 655 deletions(-) commit a114e98d09248f843c87b99c15534db4cf6367aa Author: Matthias Clasen Date: Fri May 31 21:24:21 2013 -0400 Split off the gdbus-overflow test It is unrealiable under load, and frequently fails in the ostree tests. See https://bugzilla.gnome.org/show_bug.cgi?id=701105 gio/tests/Makefile.am | 3 +- gio/tests/gdbus-overflow.c | 252 +++++++++++++++++++++++++++++++++++++++++++++ gio/tests/gdbus-peer.c | 126 +---------------------- 3 files changed, 255 insertions(+), 126 deletions(-) commit eb16c5a4fea60e7969640972c8bc70dcc8673857 Author: Matthias Clasen Date: Fri May 31 17:23:29 2013 -0400 Fix a typo glib/gtestutils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 9cfac6e76c19b40a9b07b92d34afb06b13b1876e Author: Ryan Lortie Date: Thu May 30 13:50:17 2013 -0400 Bump version. configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit a681e11f928e79d40d4d1e994dd5b65378f911a7 Author: William Jon McCann Date: Wed Jan 30 00:46:43 2013 +0100 Fix property example in gobject tutorial https://bugzilla.gnome.org/show_bug.cgi?id=692848 docs/reference/gobject/tut_howto.xml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) commit ccc039c70578b3fdf146d8e4d97588debf3d7c89 Author: Ryan Lortie Date: Wed May 29 23:30:46 2013 -0400 Remove org.gtk.test.gschema This is the old non-xml schema file format that we were playing around with at one time. Nothing is using this file anymore. gio/tests/Makefile.am | 1 - gio/tests/org.gtk.test.gschema | 39 --------------------------------------- 2 files changed, 40 deletions(-) commit c235087ba44cd090623510d50371f4444538a49c Author: Ryan Lortie Date: Wed May 29 21:49:53 2013 -0400 icon deserialisation: fix uninitialised variable Deserialising an emblemed icon would make uninitialised use of a variable in the error case. Fix that. gio/gicon.c | 2 ++ 1 file changed, 2 insertions(+) commit c7e965f4ee26b95b10b80756f24589019f9d3857 Author: Ryan Lortie Date: Wed May 29 21:33:04 2013 -0400 docs/: ignore gtester Makefile targets Mark 'test', 'test-report', 'perf-report' and 'full-report' as PHONY in docs/Makefile.am to prevent recursion of gtester into the documentation subdirectories. Stop including Makefile.decl from these directories since it is no longer necessary. This will clear up the warnings about EXTRA_DIST being defined once in gtk-doc.make and again in Makefile.decl. docs/Makefile.am | 5 +++-- docs/reference/Makefile.am | 2 -- docs/reference/gio/Makefile.am | 1 - docs/reference/gio/gdbus-object-manager-example/Makefile.am | 1 - docs/reference/glib/Makefile.am | 1 - docs/reference/gobject/Makefile.am | 1 - 6 files changed, 3 insertions(+), 8 deletions(-) commit a8a9afe17c0ee484b65c6f75e0d22ad1ae2cd9b6 Author: Ryan Lortie Date: Mon Apr 22 17:37:18 2013 -0400 GObject: prevent installing properties after init GObject has previously allowed installing properties after class_init has finished running. This means that you could install some of your own properties on G_TYPE_OBJECT, for example, although they wouldn't have worked properly. A previous patch asserted that this was not true and we had to revert it because it broke the shell. Instead of reverting, we should have used a critical, so do that now. Complaints go to this bug: https://bugzilla.gnome.org/show_bug.cgi?id=698614 gobject/gobject.c | 9 +++++++-- gobject/gtype-private.h | 1 + gobject/gtype.c | 10 ++++++++++ 3 files changed, 18 insertions(+), 2 deletions(-) commit 8df1bb3486417bc67a5b38fb8fa81f333b18da22 Author: Ryan Lortie Date: Wed May 29 08:49:16 2013 -0400 Rename G_TEST_DISTED to G_TEST_DIST Since this feature is so utterly automake-centric, we may as well be using the same terminology as automake itself (ie: although it's BUILT_SOURCES, it's DIST_EXTRA, not DISTED). Also add some comments to the enum explaining that these terms are really corresponding directly to the automake terms. https://bugzilla.gnome.org/show_bug.cgi?id=549783 gio/tests/appinfo.c | 22 +++++++++++----------- gio/tests/contexts.c | 2 +- gio/tests/file.c | 2 +- gio/tests/g-icon.c | 2 +- gio/tests/gdbus-peer.c | 2 +- gio/tests/gschema-compile.c | 2 +- gio/tests/gsettings.c | 8 ++++---- gio/tests/tls-certificate.c | 44 ++++++++++++++++++++++---------------------- glib/gtestutils.c | 30 ++++++++++++++++++++++-------- glib/gtestutils.h | 2 +- glib/tests/bookmarkfile.c | 4 ++-- glib/tests/keyfile.c | 6 +++--- glib/tests/mappedfile.c | 10 +++++----- glib/tests/markup-parse.c | 4 ++-- 14 files changed, 77 insertions(+), 63 deletions(-) commit da478acd3c948536cd117e4347fcc554d93a7dc8 Author: Ryan Lortie Date: Tue May 28 17:48:06 2013 -0400 Remove G_TEST_DATA= from installed .test files This is no longer needed with the new test data file finding stuff. https://bugzilla.gnome.org/show_bug.cgi?id=549783 gio/tests/Makefile.am | 2 +- glib/tests/Makefile.am | 2 +- gobject/tests/Makefile.am | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) commit ddd7e941f4e7199832b508d7f892680ca31937de Author: Ryan Lortie Date: Tue May 28 18:03:17 2013 -0400 Test data file API: port two more testcases These ones were slightly non-trivial so they didn't get included in the previous patches. Port them now. https://bugzilla.gnome.org/show_bug.cgi?id=549783 gio/tests/appinfo.c | 75 ++++++++++++++++++--------------------------------- gio/tests/gsettings.c | 15 ++++------- 2 files changed, 31 insertions(+), 59 deletions(-) commit 17ded322c5cb2cdb230233a9a020e1acdab9c0ab Author: Ryan Lortie Date: Tue May 28 14:24:47 2013 -0400 tests: move tests to new _get_filename() API This API was introduced to save a few lines of code here and there, so let's start by removing a bunch from our own tests. https://bugzilla.gnome.org/show_bug.cgi?id=549783 gio/tests/file.c | 5 +-- gio/tests/g-icon.c | 7 +--- gio/tests/gdbus-connection-slow.c | 12 ++---- gio/tests/gdbus-connection.c | 5 +-- gio/tests/gdbus-introspection.c | 5 +-- gio/tests/gdbus-peer.c | 3 +- gio/tests/gdbus-proxy-well-known-name.c | 9 +---- gio/tests/gdbus-proxy.c | 11 +---- gio/tests/resources.c | 35 +++++----------- gio/tests/tls-certificate.c | 72 ++++++++++++--------------------- glib/tests/keyfile.c | 12 ++---- glib/tests/mappedfile.c | 25 +++--------- 12 files changed, 56 insertions(+), 145 deletions(-) commit 575a9da718e8c84da052f50f1435914a94197696 Author: Ryan Lortie Date: Tue May 28 13:22:59 2013 -0400 gtest: Add more path building API Add a pair of functions for returning strings that don't need to be freed. This is a bit of a hack but it will turn the 99% case of using these functions from: gchar *tmp; tmp = g_test_build_filename (...); fd = open (tmp, ...); g_free (tmp); to: fd = open (g_test_get_filename (...), ...); which is a pretty substantial win. https://bugzilla.gnome.org/show_bug.cgi?id=549783 docs/reference/glib/glib-sections.txt | 2 + glib/gtestutils.c | 125 ++++++++++++++++++++++++++++++---- glib/gtestutils.h | 6 ++ 3 files changed, 118 insertions(+), 15 deletions(-) commit 58c6ca32aac6e0735d7325ce0b876025c722bae3 Author: Ryan Lortie Date: Tue May 28 12:48:37 2013 -0400 tests: use new g_test_build_filename() API Port most of the tests to the new g_test_build_filename() API. https://bugzilla.gnome.org/show_bug.cgi?id=549783 gio/tests/contexts.c | 8 +----- gio/tests/file.c | 10 +++---- gio/tests/g-icon.c | 9 +------ gio/tests/gapplication.c | 23 +++++----------- gio/tests/gdbus-connection-loss.c | 9 +------ gio/tests/gdbus-connection-slow.c | 11 ++------ gio/tests/gdbus-connection.c | 13 +-------- gio/tests/gdbus-introspection.c | 9 +------ gio/tests/gdbus-peer.c | 9 +------ gio/tests/gdbus-proxy-well-known-name.c | 11 ++------ gio/tests/gdbus-proxy.c | 11 ++------ gio/tests/gdbus-threading.c | 9 +------ gio/tests/gschema-compile.c | 8 +----- gio/tests/resources.c | 25 +++++------------- gio/tests/tls-certificate.c | 47 ++++++++++++++------------------- glib/tests/bookmarkfile.c | 9 ++----- glib/tests/keyfile.c | 14 +++------- glib/tests/mappedfile.c | 17 ++++-------- glib/tests/markup-parse.c | 10 ++----- 19 files changed, 62 insertions(+), 200 deletions(-) commit 0c4806733cb30f56325b0f1c4e95a400e4998c14 Author: Ryan Lortie Date: Tue May 28 12:44:41 2013 -0400 Add g_test_build_filename() This function allows testcases to find data files in various situations of srcdir == builddir, srcdir != builddir and for installed tests. https://bugzilla.gnome.org/show_bug.cgi?id=549783 Makefile.decl | 6 +-- docs/reference/glib/glib-sections.txt | 3 ++ glib/gtestutils.c | 98 +++++++++++++++++++++++++++++++++++ glib/gtestutils.h | 11 ++++ 4 files changed, 115 insertions(+), 3 deletions(-) commit 2afd39a90dbde31159a78b780bacdd636badb34e Author: Matthias Clasen Date: Tue May 28 22:23:58 2013 -0400 Trivial doc typo fix gobject/gtype.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) commit 2349635ebe1a757107d864bac603d7f2189b7418 Author: Matthias Clasen Date: Wed May 29 00:07:26 2013 -0400 Trivial documentation typos gobject/gobject.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit b5463f4cf44eb74e667491ddd96476f51b9a8ed6 Author: Matthias Clasen Date: Wed May 29 00:14:55 2013 -0400 Work with ltp 1.10 configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit db1c83a5163dab40673b1c5cdf23fdff771ebaf3 Author: Matthias Clasen Date: Wed May 29 08:34:24 2013 -0400 Improve gtype test coverage tests/refcount/objects.c | 3 +++ tests/refcount/properties.c | 2 ++ tests/refcount/properties2.c | 2 ++ tests/refcount/properties4.c | 4 ++++ 4 files changed, 11 insertions(+) commit 07168724d74cb656938df7abaa42dacff94c62cf Author: Matthias Clasen Date: Wed May 29 08:33:55 2013 -0400 Improve signal test coverage gobject/tests/signals.c | 206 +++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 205 insertions(+), 1 deletion(-) commit a9abbb31924f8ae9f51c1064f88efedde7c34117 Author: Matthias Clasen Date: Wed May 29 00:15:55 2013 -0400 Improve test coverage in gobject/ Lines: 6631 8862 74.8 % Functions: 747 893 83.7 % gobject/tests/Makefile.am | 5 +- gobject/tests/boxed.c | 116 +++++++++++++++++++++++++++++++++++ gobject/tests/qdata.c | 28 +++++++++ gobject/tests/type.c | 152 ++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 300 insertions(+), 1 deletion(-) commit 3382ac99be3141e084fea888c428f5d5bf725ab7 Author: Emanuele Aina Date: Mon May 20 15:53:40 2013 +0100 GIcon: NULLify the `type' out param in the sync methods too Both g_[file|bytes]_icon_load() leave the `type' out parameter untouched, while the async methods g_[file|bytes]_icon_load_finish() always set it to NULL. For consistency's sake NULLify it in the sync methods too. https://bugzilla.gnome.org/show_bug.cgi?id=700725 gio/gbytesicon.c | 3 +++ gio/gfileicon.c | 3 +++ 2 files changed, 6 insertions(+) commit 7a861ab4c9b4a8e379b1c5b7ec0385c5ef0c5d3d Author: Matej Urbančič Date: Tue May 28 22:26:50 2013 +0200 Updated Slovenian translation po/sl.po | 113 +++++++++++++++++++++++++++++++++------------------------------ 1 file changed, 59 insertions(+), 54 deletions(-) commit 9d7429509cbb6adbe6be86a55183acceccfd7167 Author: Shankar Prasad Date: Tue May 28 18:28:09 2013 +0530 updated kn translations po/kn.po | 123 ++++++++++++++++++++++++++++++++------------------------------- 1 file changed, 63 insertions(+), 60 deletions(-) commit 26df5e0d949b0ada2e5c939359dfccca71735cb4 Author: Chun-wei Fan Date: Tue May 28 12:55:56 2013 +0800 Update Visual Studio Project Sheets "Install" the newly-introduced gio/gbytesicon.h... build/win32/vs10/glib.props | 2 ++ build/win32/vs9/glib.vsprops | 1 + 2 files changed, 3 insertions(+)