Philip Withnall
662cddcb4b
glib: Deprecate gtester and gtester-report
...
Add warnings about their deprecation everywhere. The tools will continue
to work until we break API, but will be less well maintained. You should
use TAP for communicating test results to the test harness provided by
your build system or CI system instead.
Signed-off-by: Philip Withnall <withnall@endlessm.com>
Fixes : #1441
2019-05-14 12:14:54 +01:00
Philip Withnall
bd8658e16a
Merge branch 'g_format_size_is_broken_on_Windows' into 'master'
...
Fixing g_format_size() on Windows
Closes #429
See merge request GNOME/glib!837
2019-05-14 10:25:30 +00:00
Philip Withnall
6a6ab5bb12
Merge branch 'master' into 'master'
...
tests: Update month name check for Greek locale
Closes #1776
See merge request GNOME/glib!839
2019-05-14 09:52:59 +00:00
Rafal Luzynski
35c28be327
tests: Update month name check for Greek locale
...
Update the abbreviated month name in the test to match the actual
translation. Otherwise the test fails with false positive.
Vocabulary:
July (nominative) - Greek: Ιούλιος (abbreviated: Ιούλ)
Of July (genitive) - Greek: Ιουλίου (abbreviated: Ιουλ)
This is similar to commit 4d215e006e
and commit 7fe793e125
.
Closes #1776
2019-05-13 23:11:56 +02:00
Emmanuel Fleury
08f08448ec
Fixing g_format_size() on Windows
...
It seems that the issue went away on current Window systems.
Fix #429
2019-05-13 14:23:57 +02:00
Philip Withnall
ebd2116d89
Merge branch 'de' into 'master'
...
Fix typo in German translation
See merge request GNOME/glib!835
2019-05-13 10:48:48 +00:00
Martin Kröning
202ef4a4ac
Fix typo in German translation
2019-05-11 13:34:10 +00:00
Michael Catanzaro
c252bd150a
Merge branch 'wip/tingping/network-address-state' into 'master'
...
gnetworkaddress: Fix parallel enumerations interfering with each other
Closes #1771
See merge request GNOME/glib!823
2019-05-10 17:46:42 +00:00
Patrick Griffis
5ba42af9b1
gnetworkaddress: Fix parallel enumerations interfering with eachother
...
The parent GNetworkAddress contains a shared list of resolved
addresses that is used as a cache for multiple enumerations.
This commit ensures that the cache is only set upon completion of
DNS lookups and only read once by enumerations to avoid being in a
bad state.
Fixes #1771
2019-05-10 10:17:23 -07:00
Emmanuele Bassi
e8b045e699
Merge branch 'version-bump' into 'master'
...
build: (Long time after) post-release version bump
See merge request GNOME/glib!831
2019-05-10 14:44:56 +00:00
Philip Withnall
83177c0edc
build: (Long time after) post-release version bump
...
Signed-off-by: Philip Withnall <withnall@endlessm.com>
2019-05-10 15:09:50 +01:00
Philip Withnall
314901309f
Merge branch 'wip/kalev/GRWLock-autoptr' into 'master'
...
Add autoptr support for GRWLock
See merge request GNOME/glib!825
2019-05-10 11:19:42 +00:00
Philip Withnall
676275fba8
Merge branch 'master' into 'master'
...
build: Fix a typo in the test whether _NL_ABALTMON_n is supported
Closes #1759
See merge request GNOME/glib!828
2019-05-10 10:54:45 +00:00
Kalev Lember
e4bd6dd515
Add autoptr support for GRWLock
2019-05-10 12:48:20 +02:00
Rafal Luzynski
93d8482384
build: Fix a typo in the test whether _NL_ABALTMON_n is supported
...
The correct spelling is "_NL_ABALTMON_n" rather than "_NL_ALTMON_n".
The typo made Meson build think that _NL_ABALTMON_n constants are
not supported which was totally wrong. This made g_date_time_format()
output incorrect abbreviated month names in some languages.
The old configure.ac script was correct here.
Bug introduced in commit be4f96b650
.
Closes : #1759
2019-05-10 01:19:42 +02:00
Philip Withnall
305d850902
Merge branch 'wip/desrt/gsocketclient-leak' into 'master'
...
gsocketclient: Fix a leak in the connection code
Closes #1774
See merge request GNOME/glib!824
2019-05-09 16:53:22 +00:00
Allison Karlitskaya
bdefe5f9e1
gsocketclient: Fix a leak in the connection code
...
We miss releasing the async operation's reference on a state object in
one of the error cases.
The call to connection_attempt_remove() (although it calls unref
internally) is not sufficient because this is releasing the reference
that the list owns.
Closes #1774
2019-05-09 12:57:00 +02:00
Philip Withnall
a1d5395f10
Merge branch 'autoptr-assertions' into 'master'
...
Various minor cleanups to autoptrs
See merge request GNOME/glib!821
2019-05-08 20:51:58 +00:00
Sebastian Dröge
6ce96382d3
Merge branch 'unicode-12.1' into 'master'
...
glib: Update Unicode Character Database to version 12.1.0
See merge request GNOME/glib!822
2019-05-08 20:48:41 +00:00
Philip Withnall
5a30f852d6
docs: Improve formatting of g_autoptr() documentation
...
Signed-off-by: Philip Withnall <withnall@endlessm.com>
2019-05-08 21:21:39 +01:00
Philip Withnall
62be3d5d3e
tests: Use g_assert_*() in autoptr tests rather than g_assert()
...
It gives clearer failure messages, and won’t get compiled out when
building with G_DISABLE_ASSERT.
Signed-off-by: Philip Withnall <withnall@endlessm.com>
2019-05-08 21:21:39 +01:00
Philip Withnall
ae47f0d156
Merge branch 'more-auto-macros' into 'master'
...
Add g_autoqueue
See merge request GNOME/glib!474
2019-05-08 20:19:43 +00:00
Marco Trevisan (Treviño)
1d96e94070
gmacros: Add g_autoqueue to automatically free queues
...
This works as g_auto(s)list already does, and allows to create queues that are
fully auto free'd on destruction.
2019-05-08 14:25:24 -05:00
Philip Withnall
babe5cdf5e
Merge branch 'g_unichar_isxdigit_full_width' into 'master'
...
Getting fullwidth unichar for g_unichar_xdigit(_value)
Closes #58
See merge request GNOME/glib!771
2019-05-08 12:19:30 +00:00
Philip Withnall
64ddd32b79
glib: Update Unicode Character Database to version 12.1.0
...
Using commands:
```
glib/gen-unicode-tables.pl -both 12.1.0 path/to/UCD
tests/gen-casefold-txt.py 12.1.0 path/to/UCD/CaseFolding.txt \
> tests/casefold.txt
tests/gen-casemap-txt.py 12.1.0 path/to/UCD/UnicodeData.txt \
path/to/UCD/SpecialCasing.txt > tests/casemap.txt
```
Using UCD release https://www.unicode.org/Public/zipped/12.1.0/UCD.zip .
Signed-off-by: Philip Withnall <withnall@endlessm.com>
2019-05-08 13:07:55 +01:00
Emmanuele Bassi
47bcc6d852
Merge branch 'ci-report-debian-stable' into 'master'
...
ci: Keep JUnit report script working on Debian stable
See merge request GNOME/glib!820
2019-05-08 11:56:09 +00:00
Emmanuele Bassi
db849efc2a
ci: Keep JUnit report script working on Debian stable
...
The current Debian stable CI image ships with Python 3.5, so the Meson
log to JUnit report script is failing because it's using an API addition
present in Python 3.6 or later.
Since it's just a cosmetic option for the time stamp, we can get rid of
it.
2019-05-08 12:40:45 +01:00
Emmanuel Fleury
17fb60c165
Improving code coverage of glib/guniprop.c
2019-05-07 18:31:04 +02:00
Emmanuel Fleury
ae4eea7a39
Formating test cases to the new standards
...
- Added comments at the begin of each test case
- Changed 'g_assert()' into 'g_assert_xxx()'
- Sorted the 'g_test_add_func()' entries
2019-05-07 18:31:04 +02:00
Emmanuel Fleury
d8cc47831d
Getting fullwidth for g_unichar_xdigit(_value)
...
Fix issue #58 .
2019-05-07 18:31:04 +02:00
Philip Withnall
76966e6b28
Merge branch 'wip/ernestask/dtd-fix' into 'master'
...
gschema.dtd: Add target attribute to alias
See merge request GNOME/glib!814
2019-05-07 10:31:53 +00:00
Philip Withnall
0ff97045b8
Merge branch '1739-freebsd-too' into 'master'
...
tests: Don’t check for libdl on FreeBSD or NetBSD either
Closes #1739
See merge request GNOME/glib!810
2019-05-07 10:26:57 +00:00
Michael Catanzaro
b17436d952
Merge branch 'wip/tingping/socketclient-cancel-2' into 'master'
...
gsocketclient: Fix potential critical when cancelling connect
Closes #1747
See merge request GNOME/glib!783
2019-05-06 21:50:25 +00:00
Ernestas Kulik
3d9a896f2b
gschema.dtd: Add target attribute to alias
...
The implementation requires it, but the DTD doesn’t even mention it.
2019-05-06 16:26:53 +02:00
Emmanuele Bassi
8811790653
Merge branch 'wip/carlosg/appinfo-environment-preconditions' into 'master'
...
gappinfo: Add precondition checks to GAppLaunchContext env methods
See merge request GNOME/glib!813
2019-05-06 11:29:30 +00:00
Carlos Garnacho
133ad1d390
gappinfo: Add precondition checks to GAppLaunchContext env methods
...
Spotted in https://gitlab.gnome.org/GNOME/mutter/issues/586 . Bad input
on GAppLaunchContext environment manipulation functions is caught by
inner code, but the warning is not seemingly related.
Add precondition checks to these functions so it's clear where does the
bad input come from.
2019-05-06 13:05:24 +02:00
Sebastian Dröge
5bb2366a49
Merge branch '106-boxed-documentation' into 'master'
...
docs: Expand introduction to boxed types
Closes #106
See merge request GNOME/glib!798
2019-05-02 14:59:35 +00:00
Sebastian Dröge
9be2ce31d5
Merge branch '1768-strlcat-test-fix' into 'master'
...
tests: Increase buffer size for g_strlcat() tests
Closes #1768
See merge request GNOME/glib!811
2019-05-02 14:55:36 +00:00
Sebastian Dröge
d5f9b5327a
Merge branch 'queue-tests' into 'master'
...
Get to 100% coverage on GQueue tests
See merge request GNOME/glib!806
2019-05-02 14:51:24 +00:00
Philip Withnall
15aaaeaa50
docs: Expand introduction to boxed types
...
Signed-off-by: Philip Withnall <withnall@endlessm.com>
Fixes : #106
2019-05-02 14:31:31 +01:00
Sebastian Dröge
d16a7b26eb
Merge branch 'socket-docs-trivial' into 'master'
...
gsocket: Clarify in docs that `flags` arguments can be platform specific
See merge request GNOME/glib!732
2019-05-02 12:54:18 +00:00
Philip Withnall
d5093350f3
gqueue: Remove a redundant branch
...
queue->tail->next cannot be non-NULL, as pushing onto the end of the
queue is handled by the call to g_queue_push_tail_link() above.
Signed-off-by: Philip Withnall <withnall@endlessm.com>
2019-05-02 13:53:09 +01:00
Philip Withnall
4f38620b13
tests: Add unit tests for g_queue_push_nth_link()
...
This should get its branch coverage up to 100%. For completeness’ sake.
Signed-off-by: Philip Withnall <withnall@endlessm.com>
2019-05-02 13:53:09 +01:00
Philip Withnall
f033948998
tests: Add a test for calling g_queue_clear_full() with a NULL free_func
...
This improves the branch coverage of gqueue.c a little.
Signed-off-by: Philip Withnall <withnall@endlessm.com>
2019-05-02 13:53:09 +01:00
Philip Withnall
2aa71ab63b
tests: Rearrange assertions in the g_queue_clear_full() test
...
This makes it a bit clearer that we expect the queue to be empty as a
result of calling g_queue_clear_full(), rather than as a result of any
of the later cleanup.
Signed-off-by: Philip Withnall <withnall@endlessm.com>
2019-05-02 13:50:38 +01:00
Sebastian Dröge
aaf0a7c943
Merge branch '1713-ucd-12' into 'master'
...
glib: Update Unicode Character Database to version 12.0.0
Closes #1713
See merge request GNOME/glib!804
2019-05-02 12:49:16 +00:00
Philip Withnall
81ba6e54fe
tests: Remove redundant non-NULL checks in g_strlcat() test
...
The buffer is a local array, not a pointer, so can never be NULL.
Signed-off-by: Philip Withnall <withnall@endlessm.com>
2019-05-02 13:28:55 +01:00
Philip Withnall
777a6030a6
tests: Add checks for buffer sizing in g_strlcat() tests
...
Just to ensure we’re passing a valid value for dest_size.
Signed-off-by: Philip Withnall <withnall@endlessm.com>
Helps: #1768
2019-05-02 13:28:27 +01:00
Philip Withnall
7541085589
tests: Increase buffer size for g_strlcat() tests
...
There was a buffer overflow on the last g_strlcat() call in the test.
Signed-off-by: Philip Withnall <withnall@endlessm.com>
Fixes : #1768
2019-05-02 13:27:53 +01:00
Sebastian Dröge
0095056008
Merge branch '1755-revert-gstrfunc' into 'master'
...
Revert "macros: Try to use the standard __func__ first in G_STRFUNC"
Closes #1755
See merge request GNOME/glib!799
2019-05-02 12:24:15 +00:00