diff options
author | Trevor Gamblin <tgamblin@baylibre.com> | 2023-06-20 13:59:13 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-06-20 23:37:46 +0100 |
commit | 8574fb1371e2d83c1c7ee58067c50319a62a22ea (patch) | |
tree | 9e40d70c17a0bdc702cd3a70525b0b5d94275dbd /meta/recipes-core/glib-networking | |
parent | 61a881fdbe8b5a21c6276b8a5d06cc30486b1eb3 (diff) | |
download | openembedded-core-contrib-8574fb1371e2d83c1c7ee58067c50319a62a22ea.tar.gz |
glib-networking: use correct error code in ptest
The eagain patch is currently using G_IO_ERROR_BUSY as part of the check
to retry when the simul_read_thread test fails during ptests, but the
actual error code is 27, which corresponds to G_IO_ERROR_WOULD_BLOCK.
Change the check so that it looks for the right code.
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/glib-networking')
-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 ac6592ffef..ee5b6a7beb 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 MIN (TEST_DATA_LENGTH / 2, TEST_DATA_LENGTH - test->nread), NULL, &error); + -+ if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_BUSY)) ++ if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_WOULD_BLOCK)) + continue; + g_assert_no_error (error); |