[glib-networking/mcatanzaro/client-auth-failure] add a diagnostic
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib-networking/mcatanzaro/client-auth-failure] add a diagnostic
- Date: Tue, 2 Apr 2019 00:35:10 +0000 (UTC)
commit 859facabe7945f7a1f51ee98329cf35188ff2165
Author: Michael Catanzaro <mcatanzaro igalia com>
Date: Mon Apr 1 19:34:48 2019 -0500
add a diagnostic
tls/tests/connection.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
---
diff --git a/tls/tests/connection.c b/tls/tests/connection.c
index 8e0c17b..b3978cd 100644
--- a/tls/tests/connection.c
+++ b/tls/tests/connection.c
@@ -458,8 +458,15 @@ on_client_connection_close_finish (GObject *object,
g_io_stream_close_finish (G_IO_STREAM (object), res, &error);
- if (test->expected_client_close_error) // ERROR can be null here during client-auth-failure test!
+ if (test->expected_client_close_error)
+{
+if (!error) // test has failed
+{
+g_assert_no_error (test->read_error);
+g_warning("The test has failed with no close error, and there is no read error here either...");
+}
g_assert_error (error, test->expected_client_close_error->domain,
test->expected_client_close_error->code);
+}
else
g_assert_no_error (error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]