summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* meson: Provide our Python tools for buildsnirbheek/override-find-programNirbheek Chauhan2018-07-192-0/+4
| | | | | | | | | | | | | | | | Several of our tools are installed and are used by other projects to generate code. However, there is no 'install' when projects use glib as a subproject. We need some way for glib to 'provide' these tools so that when some project uses glib as a subproject, find_program('glib-mkenums') will transparently return the glib-mkenums we just built. Starting from Meson 0.46, this can be done with the `meson.override_find_program()` function. As a bonus, the Meson GNOME module will also use these 'overriden'/'provided' programs instead of looking for them in PATH.
* Merge branch '1447-date-tests-again' into 'master'Emmanuele Bassi2018-07-172-3/+31
|\ | | | | | | | | | | | | More fixes for GDateTime tests Closes #1447 See merge request GNOME/glib!186
| * tests: Skip some more date tests if translations are not installedPhilip Withnall2018-07-172-0/+22
| | | | | | | | | | | | | | | | | | | | These tests will work if the glibc translations are up to date, or if the GLib translations are installed and up to date; but not if neither are in place. Signed-off-by: Philip Withnall <philip@tecnocode.co.uk> https://gitlab.gnome.org/GNOME/glib/issues/1447
| * tests: Compare month names case-insensitively in date testsPhilip Withnall2018-07-171-3/+9
| | | | | | | | | | | | | | | | | | This has the same rationale as the corresponding change to the gdatetime tests; commit 9cadb90b35af5820bc1ee9f527fcf92a2f145cb3. Signed-off-by: Philip Withnall <philip@tecnocode.co.uk> https://gitlab.gnome.org/GNOME/glib/issues/1447
* | Update Romanian translationDaniel Șerbănescu2018-07-171-468/+517
| |
* | Merge branch 'jjardon/python_overrride' into 'master'Philip Withnall2018-07-171-1/+1
|\ \ | |/ |/| | | | | gio/Makefile.am: Use PYTHON to call python script See merge request GNOME/glib!185
| * gio/Makefile.am: Use PYTHON to call python scriptjjardon/python_overrrideJavier Jardón2018-07-171-1/+1
|/
* Merge branch 'coverity' into 'master'Emmanuele Bassi2018-07-173-10/+21
|\ | | | | | | | | Minor memory leak fixes from Coverity See merge request GNOME/glib!184
| * gvariant: Fix some memory leaks on error pathsPhilip Withnall2018-07-171-8/+14
| | | | | | | | | | Coverity CID: #1393955 Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
| * gsettings: Fix some memory leaks on error pathsPhilip Withnall2018-07-171-2/+6
| | | | | | | | | | Coverity CID: #1393949 Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
| * gio-tool: Fix a memory leak when returning command line helpPhilip Withnall2018-07-171-0/+1
|/ | | | | Coverity CID: #1393952 Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
* Merge branch '1444-install-tests' into 'master'Philip Withnall2018-07-177-205/+199
|\ | | | | | | | | | | | | Install unit tests Closes #1444 See merge request GNOME/glib!183
| * Meson: Install glib testsXavier Claessens2018-07-164-2/+34
| | | | | | | | Fixes: #1444.
| * Meson: Group all glib tests into a single dictXavier Claessens2018-07-161-175/+144
| |
| * Meson: Remove hack that got fixed a while agoXavier Claessens2018-07-161-1/+0
| |
| * Meson: Use environment() for test_envXavier Claessens2018-07-164-28/+22
| |
* | Merge branch 'add-g-has-typeof-1440' into 'master'Philip Withnall2018-07-174-3/+15
|\ \ | | | | | | | | | | | | | | | | | | gmacros: Add new private g_has_typeof to abstract __typeof__ checks Closes #1440 See merge request GNOME/glib!172
| * | gmacros: Add new private g_has_typeof to abstract __typeof__ checksIain Lane2018-07-164-3/+15
| | | | | | | | | | | | | | | | | | | | | We have this same check in a few places now, and we might as well abstract it out. Fixes #1440.
* | | Merge branch 'type-safe-g-clear-pointer-1425' into 'master'Philip Withnall2018-07-175-3/+31
|\ \ \ | |/ / | | / | |/ |/| | | | | Type safe g clear pointer 1425 Closes #1425 See merge request GNOME/glib!177
| * gmem.h: Use __typeof__() in the g_clear_pointer() macroIain Lane2018-07-162-0/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | Type punning is used on the existing implementation, which hides errors such as: GSList *list = NULL; g_clear_pointer (&list, g_error_free); Let's use __typeof__ to cast the passed-in pointer before it's passed to the free function so it trips -Wincompatible-pointer-types if it's wrong. Fixes #1425
| * gobject: Make g_clear_object take a non-volatile GObject **Iain Lane2018-07-123-3/+3
| | | | | | | | | | | | | | | | The implementation is silently discarding this anyway, and g_object_unref() is using atomic operations. So this should be safe. Having this here triggers -Wdiscarded-qualifiers when g_clear_pointer() is fixed to use __typeof__().
* | Update German translationMario Blättermann2018-07-141-579/+615
| |
* | Merge branch '976-disable-assert-checks' into 'master'Emmanuele Bassi2018-07-132-7/+54
|\ \ | | | | | | | | | | | | | | | | | | Document difference between g_assert() and g_assert_*() wrt G_DISABLE_ASSERT Closes #976 See merge request GNOME/glib!174
| * | gtestutils: Bail out of g_test_init() if G_DISABLE_ASSERT is definedPhilip Withnall2018-07-112-3/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If G_DISABLE_ASSERT is defined, g_assert() is a no-op. Despite it now being standard practice to *not* use g_assert() in unit tests (use g_assert_*() instead), a lot of existing unit tests still use it. Compiling those tests with G_DISABLE_ASSERT would make them silently no-ops. Avoid that by warning the user loudly. Note that it’s pretty rare for people to compile with G_DISABLE_ASSERT, so it’s not expected that this will be hit often. Signed-off-by: Philip Withnall <withnall@endlessm.com> https://gitlab.gnome.org/GNOME/glib/issues/976
| * | gtestutils: Document difference between g_assert() and g_assert_*()Philip Withnall2018-07-111-4/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | g_assert() must not be used in tests. g_assert_*() must not be used in production code. Signed-off-by: Philip Withnall <withnall@endlessm.com> https://gitlab.gnome.org/GNOME/glib/issues/976
* | | Merge branch '786-gio-test-leaks' into 'master'Xavier Claessens2018-07-135-12/+30
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Fix memory leaks in libgio tests and ensure tests are run under Meson Closes #786 See merge request GNOME/glib!151
| * | | tests: Mark refcount/properties2 test as slowPhilip Withnall2018-07-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | It often takes a bit more than 30s to run on my local machine. Signed-off-by: Philip Withnall <withnall@endlessm.com>
| * | | tests: Mark gdbus-threading test as slowPhilip Withnall2018-07-061-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | It often takes a bit more than 30s on my local machine to run. Signed-off-by: Philip Withnall <withnall@endlessm.com>
| * | | tests: Add missing unit test to GLib tests listPhilip Withnall2018-07-061-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | It must have been accidentally omitted during the Meson port. Signed-off-by: Philip Withnall <withnall@endlessm.com>
| * | | tests: Move two tests from GIO uninstalled helpers to test cases listPhilip Withnall2018-07-061-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | These are built and run as tests in the autotools build, and use GTest. They are tests. Signed-off-by: Philip Withnall <withnall@endlessm.com>
| * | | tests: Rework slow test handling for GIO testsPhilip Withnall2018-07-051-4/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Make it follow the same pattern as in glib/tests/meson.build, using a slow_tests array. Signed-off-by: Philip Withnall <withnall@endlessm.com>
| * | | tests: Ensure GIO tests which need dbus-daemon are runPhilip Withnall2018-07-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The tests array was being wiped out by an assignment instead of an append. This adds another 19 tests to what’s typically being run already. Signed-off-by: Philip Withnall <withnall@endlessm.com>
| * | | build: Make actions and gdbus-export GIO tests as slowPhilip Withnall2018-07-051-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | Increase their timeout. Signed-off-by: Philip Withnall <withnall@endlessm.com>
| * | | tests: Use Unicode typography in gdbus-export testPhilip Withnall2018-07-051-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This was missed in !137 because some of the GIO tests weren’t being run under Meson (see following commits). Signed-off-by: Philip Withnall <withnall@endlessm.com>
| * | | gdbus-connection-loss: Fix leak in testStef Walter2018-07-051-0/+3
| | | | | | | | | | | | | | | | https://gitlab.gnome.org/GNOME/glib/issues/786
* | | | Merge branch 'indentation_correction_gspawn' into 'master'Philip Withnall2018-07-131-18/+18
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | gspawn: correct indentation in do_posix_spawn See merge request GNOME/glib!180
| * | | | gspawn: correct indentation in do_posix_spawnThomas Hindoe Paaboel Andersen2018-07-131-18/+18
| | | | | | | | | | | | | | | | | | | | | | | | | The indentation was slightly wrong for this section when introduced in commit 61f54591acdfe69315cef6d1aa6d3bf1ff763082
* | | | | Merge branch '889-stdiowrappers-symlink-failure' into 'master'Philip Withnall2018-07-131-1/+8
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | tests: Fix running fileutils test in cwd which is a symlink Closes #889 See merge request GNOME/glib!170
| * | | | | tests: Fix running fileutils test in cwd which is a symlinkPhilip Withnall2018-07-111-1/+8
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the fileutils test was run in a directory which is a symlink (for example, on macOS, /tmp is often a symlink to /private/tmp), a path comparison was failing. Compare the paths as inodes instead. Signed-off-by: Philip Withnall <withnall@endlessm.com> https://gitlab.gnome.org/GNOME/glib/issues/889
* | | | | Merge branch 'python-none-equality' into 'master'Philip Withnall2018-07-127-21/+21
|\ \ \ \ \ | | |/ / / | |/| | | | | | | | | | | | | python: avoid equality check for None See merge request GNOME/glib!179
| * | | | python: avoid equality check for NoneThomas Hindoe Paaboel Andersen2018-07-127-21/+21
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PEP8 says that: "Comparisons to singletons like None should always be done with is or is not, never the equality operators." glib uses a mix of "== None" and "is None". This patch changes all cases to the latter.
* | | | Merge branch 'gitlab-ci-freebsd-manual' into 'master'Philip Withnall2018-07-121-0/+1
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | ci: switch the freebsd-11 job to manual mode See merge request GNOME/glib!178
| * | | ci: switch the freebsd-11 job to manual modeChristoph Reiter2018-07-121-0/+1
|/ / / | | | | | | | | | | | | So it doesn't block the pipeline until it times out. According to the runner info page it hasn't been up for 16 days.
* | | Merge branch 'revert-08f41d80' into 'master'Emmanuele Bassi2018-07-114-14/+3
|\ \ \ | | | | | | | | | | | | | | | | Revert "Merge branch 'type-safe-g-clear-pointer-1425' into 'master'" See merge request GNOME/glib!176
| * | | Revert "Merge branch 'type-safe-g-clear-pointer-1425' into 'master'"Emmanuele Bassi2018-07-114-14/+3
|/ / / | | | | | | This reverts merge request !165
* | | Updated Slovenian translationMatej Urbančič2018-07-111-179/+187
| | |
* | | Merge branch '640-appinfo-skip-display' into 'master'Emmanuele Bassi2018-07-111-1/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | tests: Fix skipping of appinfo tests when DISPLAY is unset Closes #640 See merge request GNOME/glib!171
| * | | tests: Fix skipping of appinfo tests when DISPLAY is unsetPhilip Withnall2018-07-111-1/+1
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | Use g_test_skip() so that the TAP output is correct for the tests, rather than printing using g_printerr(). Signed-off-by: Philip Withnall <withnall@endlessm.com> https://gitlab.gnome.org/GNOME/glib/issues/640
* | | Merge branch 'type-safe-g-clear-pointer-1425' into 'master'Philip Withnall2018-07-114-3/+14
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | gmem.h: Use __typeof__() in the g_clear_pointer() macro Closes #1425 See merge request GNOME/glib!165
| * | | gmem.h: Use __typeof__() in the g_clear_pointer() macroIain Lane2018-07-111-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Type punning is used on the existing implementation, which hides errors such as: GSList *list = NULL; g_clear_pointer (&list, g_error_free); Let's use __typeof__ to cast the passed-in pointer before it's passed to the free function so it trips -Wincompatible-pointer-types if it's wrong. Fixes #1425