diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-05-26 00:09:35 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-05-26 07:54:17 +0100 |
commit | 29206e7240abe9e0e7ff151d9aca107850dd231c (patch) | |
tree | e1e613de5ead2bb00b0355e026c0579d520d9a20 /meta/recipes-core/glib-2.0 | |
parent | 47d33683a12409db454dbbcaa5e3f2253d16e90c (diff) | |
download | poky-29206e7240abe9e0e7ff151d9aca107850dd231c.tar.gz |
glib-2.0: Fix TMPDIR mismatch test failures
gcc 13 appears to trigger TMPDIR changes in glib which causes ptest failures:
FAIL: glib/utils-c-90.test (Child process killed by signal 6)
FAIL: glib/utils.test (Child process killed by signal 6)
FAIL: glib/utils-c-99.test (Child process killed by signal 6)
FAIL: glib/utils-c-17.test (Child process killed by signal 6)
FAIL: glib/utils-c-11.test (Child process killed by signal 6)
The issue is caused by our symlinks between tmp directories which
cause the tests to get confused. We can set G_TEST_TMPDIR to
a resolved path using readlink to avoid the failures.
(From OE-Core rev: 7ef0ce88e23c7ca138bc4041931d9bfe1d85dfc0)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/glib-2.0')
-rw-r--r-- | meta/recipes-core/glib-2.0/glib-2.0/run-ptest | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-core/glib-2.0/glib-2.0/run-ptest b/meta/recipes-core/glib-2.0/glib-2.0/run-ptest index c476d67310..831bc3b91f 100644 --- a/meta/recipes-core/glib-2.0/glib-2.0/run-ptest +++ b/meta/recipes-core/glib-2.0/glib-2.0/run-ptest | |||
@@ -6,5 +6,5 @@ if id -u glib2-test; then | |||
6 | fi | 6 | fi |
7 | useradd glib2-test | 7 | useradd glib2-test |
8 | cd /tmp | 8 | cd /tmp |
9 | su glib2-test -c 'gnome-desktop-testing-runner glib' | 9 | su glib2-test -c 'G_TEST_TMPDIR=`readlink -f /tmp` gnome-desktop-testing-runner glib' |
10 | userdel glib2-test | 10 | userdel glib2-test |