Commit Graph

16 Commits

Author SHA1 Message Date
Martin Pitt 63c8beae1f Do not fail the /thread/thread4 test if prlimit() fails
This happens on the Debian buildds.

[smcv: Use g_test_skip()]

Forwarded: no, Debian buildd specific
2023-02-16 17:14:27 +08:00
Martin Pitt 0c36d06f9c Provide backwards compatibility for 01_gettext-desktopfiles.patch for X-{Debian,Ubuntu}-Gettext-Domain
Ubuntu-specific. 01_gettext-desktopfiles.patch was changed to use
X-GNOME-, so this is necessary until all our .desktop files are converted.

Forwarded: no
2023-02-16 17:14:12 +08:00
Simon McVittie cae3d7ccc2 gwakeuptest: Be less parallel unless invoked with -m slow
This is a workaround for test failures on the reproducible-builds
infrastructure, where a multi-threaded stress-test sometimes takes longer
to finish on x86_64 than it would have done on slow architectures like
arm and mips on the official Debian autobuilders. It is not clear why.

This change will make this test more likely to pass, but less likely to
detect bugs.

Signed-off-by: Simon McVittie <smcv@debian.org>
Bug-Debian: https://bugs.debian.org/884659
Forwarded: no
2023-02-16 17:13:59 +08:00
Ryan Lortie 7985d0ce93 timer test: use 'volatile' for locals
GCC seems to be failing to follow the letter of the C spec by allowing extra
precision in floating point values to persist across assignments which are
optimised away.

Force its hand by using 'volatile' on the locals in question.

Bug: https://gitlab.gnome.org/GNOME/glib/issues/820
Forwarded: yes
2023-02-16 17:13:50 +08:00
Philip Withnall f9b82a6fa3 Call gettext if .desktop file does not have inline translations
Patch from OpenSUSE via Ubuntu, original author unknown. Martin Pitt and
Vincent Untz appear to be the main authors.

Reworked slightly by Philip Withnall to avoid exposing new public API
for the non-standard keys.

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=569829
Bug-Ubuntu: https://launchpad.net/bugs/3935
Applied-upstream: no, rejected because "this will be solved soon" (in 2013)
2023-02-16 17:13:31 +08:00
Philip Withnall e7d9456c90 tests: Don’t rely on output locale of sort in spawn-test
Otherwise the test will fail when run in a non-English locale.

Fix suggested by Simon McVittie.

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

Bug: https://gitlab.gnome.org/GNOME/glib/-/issues/2754
Origin: upstream, 2.75.0, commit:360fc4cda351705102e72e1eeb3c4385fa7fda62
2023-02-16 17:13:13 +08:00
su-fang a28e47d6c8 merge upstream 2.74.5 2023-02-15 16:51:32 +08:00
Simon McVittie 097a383c72 gvariant test: Don't run at build-time on mips
DEB_ALLOW_FLAKY_TESTS is not quite right here, because we don't know
that the test would fail if left for long enough - the problem is that
it doesn't get there, because generating random floating-point numbers
is very slow on some of our mips hardware. However, it has the right
practical effect.

Signed-off-by: Simon McVittie <smcv@debian.org>
Bug: https://bugs.debian.org/932678
Forwarded: no

Gbp-Pq: Topic debian
Gbp-Pq: Name gvariant-test-Don-t-run-at-build-time-on-mips.patch
2022-06-29 16:02:18 +08:00
Iain Lane 03a7e5125a Skip test which performs some unreliable floating point comparisons
[smcv: Modified to use g_test_skip() instead of omitting those test cases
completely, and allow them to be re-enabled with a Debian-specific
environment variable]

Co-authored-by: Simon McVittie <smcv@debian.org>
Bug: https://gitlab.gnome.org/GNOME/glib/issues/820
Forwarded: no

Gbp-Pq: Topic debian
Gbp-Pq: Name Skip-test-which-performs-some-unreliable-floating-point-c.patch
2022-06-29 16:02:18 +08:00
Martin Pitt 2b782b1c51 Disable some tests on slow architectures which keep failing the tests
[smcv: Modified to use g_test_skip() instead of omitting those test cases
completely, and allow them to be re-enabled with a Debian-specific
environment variable]

Co-authored-by: Simon McVittie <smcv@debian.org>
Forwarded: no

Gbp-Pq: Topic debian
Gbp-Pq: Name Disable-some-tests-on-slow-architectures-which-keep-faili.patch
2022-06-29 16:02:18 +08:00
Martin Pitt d2ebb1b201 Do not fail the /thread/thread4 test if prlimit() fails
This happens on the Debian buildds.

[smcv: Use g_test_skip()]

Forwarded: no, Debian buildd specific

Gbp-Pq: Topic debian
Gbp-Pq: Name 06_thread_test_ignore_prctl_fail.patch
2022-06-29 16:02:18 +08:00
Martin Pitt de9c3ad021 Provide backwards compatibility for 01_gettext-desktopfiles.patch for X-{Debian,Ubuntu}-Gettext-Domain
Ubuntu-specific. 01_gettext-desktopfiles.patch was changed to use
X-GNOME-, so this is necessary until all our .desktop files are converted.

Forwarded: no

Gbp-Pq: Topic debian
Gbp-Pq: Name 02_gettext-desktopfiles-ubuntu.patch
2022-06-29 16:02:18 +08:00
Simon McVittie 7a9cd90792 gwakeuptest: Be less parallel unless invoked with -m slow
This is a workaround for test failures on the reproducible-builds
infrastructure, where a multi-threaded stress-test sometimes takes longer
to finish on x86_64 than it would have done on slow architectures like
arm and mips on the official Debian autobuilders. It is not clear why.

This change will make this test more likely to pass, but less likely to
detect bugs.

Signed-off-by: Simon McVittie <smcv@debian.org>
Bug-Debian: https://bugs.debian.org/884659
Forwarded: no

Gbp-Pq: Name gwakeuptest-Be-less-parallel-unless-invoked-with-m-slow.patch
2022-06-29 16:02:18 +08:00
Ryan Lortie 8efec0f56f timer test: use 'volatile' for locals
GCC seems to be failing to follow the letter of the C spec by allowing extra
precision in floating point values to persist across assignments which are
optimised away.

Force its hand by using 'volatile' on the locals in question.

Bug: https://gitlab.gnome.org/GNOME/glib/issues/820
Forwarded: yes

Gbp-Pq: Name 0001-timer-test-use-volatile-for-locals.patch
2022-06-29 16:02:18 +08:00
Philip Withnall 67d81c5724 [PATCH] Call gettext if .desktop file does not have inline translations
Patch from OpenSUSE via Ubuntu, original author unknown. Martin Pitt and
Vincent Untz appear to be the main authors.

Reworked slightly by Philip Withnall to avoid exposing new public API
for the non-standard keys.

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=569829
Bug-Ubuntu: https://launchpad.net/bugs/3935
Applied-upstream: no, rejected because "this will be solved soon" (in 2013)

Gbp-Pq: Name 01_gettext-desktopfiles.patch
2022-06-29 16:02:18 +08:00
luzp d208406d98 Import Upstream version 2.64.2 2022-06-29 16:02:05 +08:00