glib-networking: Correct glib error handling in test patch

(From OE-Core rev: 66dc4b94e9fad8d209f12fa64bd0673a42c28ac9)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 4ba74f61f38827d82586cf9c993a4b27065f5c6f)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
This commit is contained in:
Richard Purdie
2023-05-07 21:00:36 +01:00
committed by Steve Sakoman
parent baea4975da
commit d71b2e9385

View File

@@ -21,7 +21,7 @@ Index: glib-networking-2.74.0/tls/tests/connection.c
MIN (TEST_DATA_LENGTH / 2, TEST_DATA_LENGTH - test->nread),
NULL, &error);
+
+ if (error == G_IO_STATUS_AGAIN)
+ if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_BUSY))
+ continue;
+
g_assert_no_error (error);