Commit Graph

25415 Commits

Author SHA1 Message Date
Philip Withnall
a57c33fc1d Merge branch 'cleanup-warnings-split-3' into 'main'
Cleanup warnings split 3

See merge request GNOME/glib!2492
2022-02-18 13:45:42 +00:00
Philip Withnall
5ac86e21b3 Merge branch 'cleanup-warnings-split-2' into 'main'
Cleanup warnings split 2

See merge request GNOME/glib!2491
2022-02-18 13:39:25 +00:00
Philip Withnall
648f9efce0 tests: Remove extra debugging from gdbus-connection-flush
Having compared the debug output, it doesn’t show anything unusual
happening that can’t already be seen from other output, for this test.

This is a partial revert of 8fd71dccc5. The debugging output it added to
other tests may still be useful.

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>

Helps: #1929
2022-02-18 13:24:13 +00:00
Philip Withnall
693e4efeba tests: Use g_assert_*() rather than g_assert() in gdbus-connection-flush.c
`g_assert()` is compiled out with `G_DISABLE_ASSERT`.

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
2022-02-18 13:22:16 +00:00
Philip Withnall
dc0eb5e49a gdbusauthmechanismsha1: Don’t delete a stale lock file if it’s changed
The retry loop for acquiring the lock for the authentication cookie file
currently tries to acquire the lock for 0.5s, then gives up, assumes the
lock file is stale, and deletes it.

That’s great if the lock file *is* stale because it’s been left there by
a crashed process.

It’s not so great if the lock file just happens to have been there every
time this process checked, because the cookie file is highly contested
while (for example) running lots of parallel unit tests.

Check for that situation by comparing the mtime of the lock file and
continuing to retry if it’s changed.

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>

Fixes: #1929
2022-02-18 13:17:19 +00:00
Philip Withnall
2801f7383a Merge branch 'ci-updates' into 'main'
ci: Drop custom dependency builds from installed-tests

See merge request GNOME/glib!2507
2022-02-18 12:07:10 +00:00
Philip Withnall
10e5c21102 Merge branch 'desktop-app-info-leak' into 'main'
gdesktopappinfo: Fix a leak when launching URIs over D-Bus

See merge request GNOME/glib!2510
2022-02-18 12:06:13 +00:00
Philip Withnall
e80569bd86 Merge branch 'iochannel-test' into 'main'
tests: Merge iochannel-test into io-channel tests in glib directory

See merge request GNOME/glib!2502
2022-02-18 10:39:43 +00:00
Philip Withnall
a60424b644 Merge branch 'backtrace-unused-variable' into 'main'
gbacktrace: Fix a set-but-not-used variable

See merge request GNOME/glib!2503
2022-02-18 10:39:22 +00:00
Philip Withnall
3583526c2d Merge branch 'disable-assert-fix' into 'main'
gresource-tool: Fix unused-but-set-variable warn with G_DISABLE_ASSERT

See merge request GNOME/glib!2506
2022-02-18 10:38:44 +00:00
Philip Withnall
5046dd8679 Merge branch 'fix-style-check' into 'main'
codegen: Reformat parser.py according to black

See merge request GNOME/glib!2508
2022-02-18 10:38:05 +00:00
Philip Withnall
f6aafcd028 gdesktopappinfo: Fix a leak when launching URIs over D-Bus
If any platform data is set, the temporary `GVariantDict` was being
leaked.

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
2022-02-18 10:35:10 +00:00
Philip Withnall
d551e81812 Merge branch 'fix-compile-resources-leak' into 'main'
glib-compile-resources: Fix a memory leak of the compiler option

See merge request GNOME/glib!2501
2022-02-18 10:34:25 +00:00
Philip Withnall
019aed7bc5 Merge branch 'cleanup-warnings-split-1' into 'main'
Cleanup warnings split 1

See merge request GNOME/glib!2490
2022-02-18 10:23:34 +00:00
Philip Withnall
2249da981a tests: Use g_assert_*() rather than g_assert() in environment.c
`g_assert()` is compiled out with `G_DISABLE_ASSERT`.

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
2022-02-18 10:18:40 +00:00
Philip Withnall
e30787d604 ci: Drop custom dependency builds from installed-tests
They were needed for `GMemoryMonitor` support. That was first included
in the gobject-introspection 1.63.2 release and the xdg-desktop-portal
1.5.4 release. The Fedora 33 image we’re using for CI has versions
1.66.1 and 1.8.1.

This should speed up the `installed-tests` CI jobs a bit.

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
2022-02-18 10:18:27 +00:00
Philip Withnall
51b707bdc6 Merge branch 'debugcontroller-test-fix' into 'main'
gdebugcontrollerdbus: Track pending tasks with weak refs

See merge request GNOME/glib!2504
2022-02-18 10:10:56 +00:00
Loic Le Page
c2b60e0323 Fix redefinition of local variable in gio/gdbusconnection.c 2022-02-18 11:02:05 +01:00
Loic Le Page
124733d10c Fix redefinition of local variable in gio/gnetworkservice.c 2022-02-18 11:01:41 +01:00
Loic Le Page
dd96eeee74 Fix redefinition of local variable in gio/gregistrysettingsbackend.c 2022-02-18 11:01:41 +01:00
Loic Le Page
98c1b84617 Fix redefinition of local variable and non-initialized variable in gio/gresource.c 2022-02-18 11:01:41 +01:00
Loic Le Page
2c734147cf Fix non-initialized variable in gio/gresource-tool.c 2022-02-18 11:01:41 +01:00
Loic Le Page
f92002e9f5 Fix non-initialized variable in gio/gresourcefile.c 2022-02-18 11:01:40 +01:00
Loic Le Page
37ca061e40 Fix redefinition of local variable in gio/gsettings.c 2022-02-18 11:01:40 +01:00
Loic Le Page
e0ccf08284 Fix non-initialized variable in gio/gsettings-tool.c 2022-02-18 11:01:40 +01:00
Loic Le Page
800457e102 Fix non-initialized variable in glib/garray.c 2022-02-18 10:59:30 +01:00
Loic Le Page
112ad3d591 Fix too small array definition in glib/gconvert.c (no room for the '\0') 2022-02-18 10:59:30 +01:00
Loic Le Page
d5580edfa7 Fix non-initialized variable in glib/gdatetime.c 2022-02-18 10:59:30 +01:00
Loic Le Page
7304e4de17 Fix non-initialized variable in glib/giowin32.c 2022-02-18 10:59:30 +01:00
Loic Le Page
c118fd5e37 Fix non-initialized variable in glib/gmarkup.c 2022-02-18 10:59:30 +01:00
Loic Le Page
51e54f64c1 Fix global variable name hidden by local variables in glib/gslice.c 2022-02-18 10:53:35 +01:00
Loic Le Page
eaf37d63d0 Fix non-initialized variable in glib/gspawn-win32.c 2022-02-18 10:53:35 +01:00
Loic Le Page
499cb2cd1a Fix non-initialized variable and signed/unsigned mismatch in glib/gtimezone.c 2022-02-18 10:53:35 +01:00
Loic Le Page
e8761bb4df Fix non-initialized variable and signed/unsigned mismatch in glib/gunicollate.c 2022-02-18 10:53:35 +01:00
Loic Le Page
eb961b02d6 Fix too small array definition in glib/guri.c (no room for the '\0') 2022-02-18 10:52:39 +01:00
Loic Le Page
bdf1a0ba80 Fix non-initialized variable in glib/gutils.c 2022-02-18 10:52:39 +01:00
Loic Le Page
28fa4325a4 Fix non-initialized variable in glib/gvariant-parser.c 2022-02-18 10:52:38 +01:00
Loic Le Page
de8ab33cb5 Fix global variable name hidden by local variables in glib/gwin32-private.c 2022-02-18 10:52:38 +01:00
Loic Le Page
8e37f9c48a Fix global variable name hidden by local variables in gobject/tests/reference.c 2022-02-18 10:49:00 +01:00
Loic Le Page
208593acc6 Fix redefinition of local variable and non-initialized variable in gobject/gsignal.c 2022-02-18 10:49:00 +01:00
Loic Le Page
84c5675cef Fix redefinition of local variable in gobject/gtype.c 2022-02-18 10:49:00 +01:00
Loic Le Page
5f5a4a74b4 Fix non-initialized variable and pointer casted to int in tests/gio-test.c 2022-02-18 10:48:39 +01:00
Loic Le Page
2d5c6fc520 Fix global variable name hidden by local variables in tests/mapping-test.c 2022-02-18 10:25:33 +01:00
Loic Le Page
258775a1a6 Hide non-fatal level-4 warnings and repetitions during build 2022-02-18 10:24:57 +01:00
Loic Le Page
1e9f5d6392 Update subproject pcre.wrap to last version
Last pcre.wrap version cleans up warnings on Windows builds.
2022-02-18 10:19:07 +01:00
Kukuh Syafaat
979b9af242 Update Indonesian translation 2022-02-18 02:04:31 +00:00
Philip Withnall
f300e883e7 codegen: Reformat parser.py according to black
This fixes the `style-check-diff` CI job.

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
2022-02-18 01:45:10 +00:00
Philip Withnall
425702df9c gresource-tool: Fix unused-but-set-variable warn with G_DISABLE_ASSERT
Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
2022-02-18 01:40:44 +00:00
Philip Withnall
9652a3dd79 gdebugcontrollerdbus: Track pending tasks with weak refs
Rather than tracking them with a counter. This should close the race in
tracking the finalisation of the tasks by the task worker thread.
There’s no way to synchronise with that thread as it’s internal to
`g_task_run_in_thread()`.

This should hopefully stop the `debugcontroller` test being flaky.

See https://gitlab.gnome.org/GNOME/glib/-/merge_requests/2486#note_1384102

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
2022-02-18 00:46:07 +00:00
Philip Withnall
0694c1a5ad gbacktrace: Fix a set-but-not-used variable
It’s only used if building for lldb. Spotted in the log from an oss-fuzz
build:
https://oss-fuzz-build-logs.storage.googleapis.com/log-051f05da-adf5-42c1-8f14-5e36ba750573.txt:
```
Step #12 - "compile-honggfuzz-address-x86_64": [36/1232] Compiling C object glib/libglib-2.0.a.p/gbacktrace.c.o
Step #12 - "compile-honggfuzz-address-x86_64": ../../src/glib/glib/gbacktrace.c:324:24: warning: variable 'line_idx' set but not used [-Wunused-but-set-variable]
Step #12 - "compile-honggfuzz-address-x86_64":   int sel, idx, state, line_idx;
Step #12 - "compile-honggfuzz-address-x86_64":                        ^
Step #12 - "compile-honggfuzz-address-x86_64": 1 warning generated.
```

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
2022-02-17 21:46:39 +00:00