All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] glib-networking: Fix ptest failures with openssl backend
@ 2023-12-22 17:54 Khem Raj
  2024-01-09 15:55 ` [OE-core] " Ross Burton
  0 siblings, 1 reply; 4+ messages in thread
From: Khem Raj @ 2023-12-22 17:54 UTC (permalink / raw)
  To: openembedded-core; +Cc: Khem Raj

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 ...Disable-test_unclean_close_by_server.patch | 42 +++++++++++++++++++
 .../glib-networking/glib-networking_2.78.0.bb |  5 ++-
 2 files changed, 45 insertions(+), 2 deletions(-)
 create mode 100644 meta/recipes-core/glib-networking/glib-networking/0001-tests-Disable-test_unclean_close_by_server.patch

diff --git a/meta/recipes-core/glib-networking/glib-networking/0001-tests-Disable-test_unclean_close_by_server.patch b/meta/recipes-core/glib-networking/glib-networking/0001-tests-Disable-test_unclean_close_by_server.patch
new file mode 100644
index 00000000000..44e92f52001
--- /dev/null
+++ b/meta/recipes-core/glib-networking/glib-networking/0001-tests-Disable-test_unclean_close_by_server.patch
@@ -0,0 +1,42 @@
+From 378bb3b0bf001e66a89d100ba12ac183e8375c36 Mon Sep 17 00:00:00 2001
+From: Khem Raj <raj.khem@gmail.com>
+Date: Fri, 22 Dec 2023 09:46:36 -0800
+Subject: [PATCH] tests: Disable test_unclean_close_by_server
+
+This test does not work reliably when openSSL support is enabled. This
+is not default in OE therefore the ptest failure is not seen on AB
+testing
+
+Fixes
+
+not ok /tls/openssl/connection/unclean-close-by-server - GLib-Net:ERROR:../tls/tests/connection.c:2374:test_unclean_close_by_server: assertion failed (test->read_error == (g-tls-error-quark, 6)): Error reading data from TLS socket: error:00000005:lib(0)::reason(5) (g-tls-error-quark, 1)
+Bail out!
+stderr:
+**
+GLib-Net:ERROR:../tls/tests/connection.c:2374:test_unclean_close_by_server: assertion failed (test->read_error == (g-tls-error-quark, 6)): Error reading data from TLS socket: error:00000005:lib(0)::reason(5) (g-tls-error-quark, 1)
+
+Issue is already reported upstream [1]
+
+[1] https://gitlab.gnome.org/GNOME/glib-networking/-/issues/219
+Upstream-Status: Inappropriate [ Disabled test as a workaround until fixed ]
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+---
+ tls/tests/connection.c | 2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/tls/tests/connection.c b/tls/tests/connection.c
+index 62a7fbb..cc99645 100644
+--- a/tls/tests/connection.c
++++ b/tls/tests/connection.c
+@@ -3462,8 +3462,6 @@ main (int   argc,
+               setup_connection, test_simultaneous_sync_rehandshake, teardown_connection);
+   g_test_add ("/tls/" BACKEND "/connection/close-immediately", TestConnection, NULL,
+               setup_connection, test_close_immediately, teardown_connection);
+-  g_test_add ("/tls/" BACKEND "/connection/unclean-close-by-server", TestConnection, NULL,
+-              setup_connection, test_unclean_close_by_server, teardown_connection);
+   g_test_add ("/tls/" BACKEND "/connection/async-implicit-handshake", TestConnection, NULL,
+               setup_connection, test_async_implicit_handshake, teardown_connection);
+   g_test_add ("/tls/" BACKEND "/connection/output-stream-close", TestConnection, NULL,
+-- 
+2.43.0
+
diff --git a/meta/recipes-core/glib-networking/glib-networking_2.78.0.bb b/meta/recipes-core/glib-networking/glib-networking_2.78.0.bb
index 68f9a2ed783..e360e59b532 100644
--- a/meta/recipes-core/glib-networking/glib-networking_2.78.0.bb
+++ b/meta/recipes-core/glib-networking/glib-networking_2.78.0.bb
@@ -30,8 +30,9 @@ PACKAGECONFIG[gnomeproxy] = "-Dgnome_proxy=enabled,-Dgnome_proxy=disabled,gsetti
 inherit gnomebase gettext upstream-version-is-even gio-module-cache ptest-gnome
 
 SRC_URI += "file://run-ptest"
-SRC_URI += "file://eagain.patch"
-
+SRC_URI += "file://eagain.patch \
+            file://0001-tests-Disable-test_unclean_close_by_server.patch \
+            "
 FILES:${PN} += "\
                 ${libdir}/gio/modules/libgio*.so \
                 ${datadir}/dbus-1/services/ \
-- 
2.43.0



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [OE-core] [PATCH] glib-networking: Fix ptest failures with openssl backend
  2023-12-22 17:54 [PATCH] glib-networking: Fix ptest failures with openssl backend Khem Raj
@ 2024-01-09 15:55 ` Ross Burton
  2024-01-09 16:13   ` Khem Raj
  0 siblings, 1 reply; 4+ messages in thread
From: Ross Burton @ 2024-01-09 15:55 UTC (permalink / raw)
  To: Khem Raj; +Cc: openembedded-core

On 22 Dec 2023, at 17:54, Khem Raj via lists.openembedded.org <raj.khem=gmail.com@lists.openembedded.org> wrote:
> +SRC_URI += "file://eagain.patch \
> +            file://0001-tests-Disable-test_unclean_close_by_server.patch \

As this only affects builds with openssl, should we apply the patch in on openssl builds?

Ross



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [OE-core] [PATCH] glib-networking: Fix ptest failures with openssl backend
  2024-01-09 15:55 ` [OE-core] " Ross Burton
@ 2024-01-09 16:13   ` Khem Raj
  2024-01-09 16:33     ` Ross Burton
  0 siblings, 1 reply; 4+ messages in thread
From: Khem Raj @ 2024-01-09 16:13 UTC (permalink / raw)
  To: Ross Burton; +Cc: openembedded-core

On Tue, Jan 9, 2024 at 7:55 AM Ross Burton <Ross.Burton@arm.com> wrote:
>
> On 22 Dec 2023, at 17:54, Khem Raj via lists.openembedded.org <raj.khem=gmail.com@lists.openembedded.org> wrote:
> > +SRC_URI += "file://eagain.patch \
> > +            file://0001-tests-Disable-test_unclean_close_by_server.patch \
>
> As this only affects builds with openssl, should we apply the patch in on openssl builds?
>

is it enabled to run when using other backends ?

> Ross
>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [OE-core] [PATCH] glib-networking: Fix ptest failures with openssl backend
  2024-01-09 16:13   ` Khem Raj
@ 2024-01-09 16:33     ` Ross Burton
  0 siblings, 0 replies; 4+ messages in thread
From: Ross Burton @ 2024-01-09 16:33 UTC (permalink / raw)
  To: Khem Raj; +Cc: openembedded-core

On 9 Jan 2024, at 16:13, Khem Raj <raj.khem@gmail.com> wrote:
> 
> On Tue, Jan 9, 2024 at 7:55 AM Ross Burton <Ross.Burton@arm.com> wrote:
>> 
>> On 22 Dec 2023, at 17:54, Khem Raj via lists.openembedded.org <raj.khem=gmail.com@lists.openembedded.org> wrote:
>>> +SRC_URI += "file://eagain.patch \
>>> +            file://0001-tests-Disable-test_unclean_close_by_server.patch \
>> 
>> As this only affects builds with openssl, should we apply the patch in on openssl builds?
>> 
> 
> is it enabled to run when using other backends ?

That test doesn’t appear to be guarded to only run on openssl, so it passes with gnutls.

FWIW, it’s recommended to use gnutls unless you have incredibly good reasons, the openssl backend _is_ broken.

Ross

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-01-09 16:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-22 17:54 [PATCH] glib-networking: Fix ptest failures with openssl backend Khem Raj
2024-01-09 15:55 ` [OE-core] " Ross Burton
2024-01-09 16:13   ` Khem Raj
2024-01-09 16:33     ` Ross Burton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.