diff options
Diffstat (limited to 'meta/recipes-core/glib-networking/glib-networking/eagain.patch')
-rw-r--r-- | meta/recipes-core/glib-networking/glib-networking/eagain.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/meta/recipes-core/glib-networking/glib-networking/eagain.patch b/meta/recipes-core/glib-networking/glib-networking/eagain.patch new file mode 100644 index 0000000000..6c2e3c634b --- /dev/null +++ b/meta/recipes-core/glib-networking/glib-networking/eagain.patch | |||
@@ -0,0 +1,36 @@ | |||
1 | From 5604707bed4b4a4bc4658c7158a18c1774775775 Mon Sep 17 00:00:00 2001 | ||
2 | From: Richard Purdie <richard.purdie@linuxfoundation.org> | ||
3 | Date: Sat, 6 May 2023 12:18:50 +0100 | ||
4 | Subject: [PATCH] In autobuilder testing we regularly see glib-networking ptest | ||
5 | fail with: | ||
6 | |||
7 | GLib-Net:ERROR:/usr/src/debug/glib-networking/2.74.0-r0/tls/tests/connection.c:1944:simul_read_thread: assertion failed (error == NULL): Resource temporarily unavailable (g-io-error-quark, 27) | ||
8 | Bail out! GLib-Net:ERROR:/usr/src/debug/glib-networking/2.74.0-r0/tls/tests/connection.c:1944:simul_read_thread: assertion failed (error == NULL): Resource temporarily unavailable (g-io-error-quark, 27) | ||
9 | FAIL: glib-networking/connection-openssl.test (Child process killed by signal 6) | ||
10 | SUMMARY: total=4; passed=3; skipped=0; failed=1; user=0.9s; system=0.4s; maxrss=10708 | ||
11 | FAIL: glib-networking/connection-openssl.test (Child process killed by signal 6) | ||
12 | |||
13 | The test should probably retry in this situation so test a patch which does this. | ||
14 | |||
15 | Upstream-Status: Pending [testing to see if patch resolves the issue] | ||
16 | |||
17 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> | ||
18 | --- | ||
19 | tls/tests/connection.c | 4 ++++ | ||
20 | 1 file changed, 4 insertions(+) | ||
21 | |||
22 | diff --git a/tls/tests/connection.c b/tls/tests/connection.c | ||
23 | index 62a7fbb..3447c80 100644 | ||
24 | --- a/tls/tests/connection.c | ||
25 | +++ b/tls/tests/connection.c | ||
26 | @@ -2210,6 +2210,10 @@ simul_read_thread (gpointer user_data) | ||
27 | test->buf + test->nread, | ||
28 | MIN (TEST_DATA_LENGTH / 2, TEST_DATA_LENGTH - test->nread), | ||
29 | NULL, &error); | ||
30 | + | ||
31 | + if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_WOULD_BLOCK)) | ||
32 | + continue; | ||
33 | + | ||
34 | g_assert_no_error (error); | ||
35 | |||
36 | test->nread += nread; | ||