mirror of
https://git.yoctoproject.org/poky
synced 2026-06-03 01:40:07 +00:00
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. (From OE-Core rev: 669bb92fde575d3f9674b87044575873c3506df5) Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 8574fb1371e2d83c1c7ee58067c50319a62a22ea) Signed-off-by: Steve Sakoman <steve@sakoman.com>
This commit is contained in:
committed by
Steve Sakoman
parent
2ed4fd70e4
commit
a5d9fa0860
@@ -21,7 +21,7 @@ Index: glib-networking-2.74.0/tls/tests/connection.c
|
|||||||
MIN (TEST_DATA_LENGTH / 2, TEST_DATA_LENGTH - test->nread),
|
MIN (TEST_DATA_LENGTH / 2, TEST_DATA_LENGTH - test->nread),
|
||||||
NULL, &error);
|
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;
|
+ continue;
|
||||||
+
|
+
|
||||||
g_assert_no_error (error);
|
g_assert_no_error (error);
|
||||||
|
|||||||
Reference in New Issue
Block a user