diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-05-07 21:00:36 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-05-08 10:59:14 +0100 |
commit | b5a7d85a9e13810be4e9a75cdf5e57318acd475c (patch) | |
tree | 798020504fbe085ab6c1c22fd42e4c67a6116d52 /meta/recipes-core/glib-networking/glib-networking/eagain.patch | |
parent | fbbe77620229273eaf64c130a0447f2fe6615281 (diff) | |
download | poky-b5a7d85a9e13810be4e9a75cdf5e57318acd475c.tar.gz |
glib-networking: Correct glib error handling in test patch
(From OE-Core rev: 4ba74f61f38827d82586cf9c993a4b27065f5c6f)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/glib-networking/glib-networking/eagain.patch')
-rw-r--r-- | meta/recipes-core/glib-networking/glib-networking/eagain.patch | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-core/glib-networking/glib-networking/eagain.patch b/meta/recipes-core/glib-networking/glib-networking/eagain.patch index 6dfbb2736c..ac6592ffef 100644 --- a/meta/recipes-core/glib-networking/glib-networking/eagain.patch +++ b/meta/recipes-core/glib-networking/glib-networking/eagain.patch | |||
@@ -21,7 +21,7 @@ Index: glib-networking-2.74.0/tls/tests/connection.c | |||
21 | MIN (TEST_DATA_LENGTH / 2, TEST_DATA_LENGTH - test->nread), | 21 | MIN (TEST_DATA_LENGTH / 2, TEST_DATA_LENGTH - test->nread), |
22 | NULL, &error); | 22 | NULL, &error); |
23 | + | 23 | + |
24 | + if (error == G_IO_STATUS_AGAIN) | 24 | + if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_BUSY)) |
25 | + continue; | 25 | + continue; |
26 | + | 26 | + |
27 | g_assert_no_error (error); | 27 | g_assert_no_error (error); |