| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|\
| |
| |
| |
| |
| |
| | |
More fixes for GDateTime tests
Closes #1447
See merge request GNOME/glib!186
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| | |
|
|\ \
| |/
|/|
| |
| | |
gio/Makefile.am: Use PYTHON to call python script
See merge request GNOME/glib!185
|
|/ |
|
|\
| |
| |
| |
| | |
Minor memory leak fixes from Coverity
See merge request GNOME/glib!184
|
| |
| |
| |
| |
| | |
Coverity CID: #1393955
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
|
| |
| |
| |
| |
| | |
Coverity CID: #1393949
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
|
|/
|
|
|
| |
Coverity CID: #1393952
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
|
|\
| |
| |
| |
| |
| |
| | |
Install unit tests
Closes #1444
See merge request GNOME/glib!183
|
| |
| |
| |
| | |
Fixes: #1444.
|
| | |
|
| | |
|
| | |
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | | |
gmacros: Add new private g_has_typeof to abstract __typeof__ checks
Closes #1440
See merge request GNOME/glib!172
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
We have this same check in a few places now, and we might as well
abstract it out.
Fixes #1440.
|
|\ \ \
| |/ /
| | /
| |/
|/|
| |
| | |
Type safe g clear pointer 1425
Closes #1425
See merge request GNOME/glib!177
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| |
| |
| |
| |
| | |
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__().
|
| | |
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | | |
Document difference between g_assert() and g_assert_*() wrt G_DISABLE_ASSERT
Closes #976
See merge request GNOME/glib!174
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
|\ \ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Fix memory leaks in libgio tests and ensure tests are run under Meson
Closes #786
See merge request GNOME/glib!151
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
It often takes a bit more than 30s to run on my local machine.
Signed-off-by: Philip Withnall <withnall@endlessm.com>
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
It often takes a bit more than 30s on my local machine to run.
Signed-off-by: Philip Withnall <withnall@endlessm.com>
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
It must have been accidentally omitted during the Meson port.
Signed-off-by: Philip Withnall <withnall@endlessm.com>
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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>
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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>
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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>
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Increase their timeout.
Signed-off-by: Philip Withnall <withnall@endlessm.com>
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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>
|
| | | |
| | | |
| | | |
| | | | |
https://gitlab.gnome.org/GNOME/glib/issues/786
|
|\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | | |
gspawn: correct indentation in do_posix_spawn
See merge request GNOME/glib!180
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
The indentation was slightly wrong for this section when introduced
in commit 61f54591acdfe69315cef6d1aa6d3bf1ff763082
|
|\ \ \ \ \
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
tests: Fix running fileutils test in cwd which is a symlink
Closes #889
See merge request GNOME/glib!170
|
| | |_|/ /
| |/| | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
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
|
|\ \ \ \ \
| | |/ / /
| |/| | |
| | | | |
| | | | | |
python: avoid equality check for None
See merge request GNOME/glib!179
|
|/ / / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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.
|
|\ \ \ \
| |_|_|/
|/| | |
| | | |
| | | | |
ci: switch the freebsd-11 job to manual mode
See merge request GNOME/glib!178
|
|/ / /
| | |
| | |
| | |
| | | |
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.
|
|\ \ \
| | | |
| | | |
| | | |
| | | | |
Revert "Merge branch 'type-safe-g-clear-pointer-1425' into 'master'"
See merge request GNOME/glib!176
|
|/ / /
| | |
| | | |
This reverts merge request !165
|
| | | |
|
|\ \ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
tests: Fix skipping of appinfo tests when DISPLAY is unset
Closes #640
See merge request GNOME/glib!171
|
| |/ /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
|\ \ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
gmem.h: Use __typeof__() in the g_clear_pointer() macro
Closes #1425
See merge request GNOME/glib!165
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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
|