[libsoup] no-ssl-test: fix for GDummyTlsBackend changes
- From: Dan Winship <danw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup] no-ssl-test: fix for GDummyTlsBackend changes
- Date: Sat, 30 Nov 2013 20:47:26 +0000 (UTC)
commit b16b45344b10d6dc3abcca10ed477c5ea45787c8
Author: Dan Winship <danw gnome org>
Date: Wed Nov 20 17:18:57 2013 -0500
no-ssl-test: fix for GDummyTlsBackend changes
This was assuming that setting "ssl-use-system-ca-file" would fail
when using the dummy TLS backend, but the fact that it failed was just
a side effect of the fact that GDummyTlsBackend returned a different
GTlsDatabase every time you called
g_tls_backend_get_default_database(). Now that that's fixed, setting
"ssl-use-system-ca-file" does appear to work.
Of course, SSL won't work at all with the dummy backend, so it doesn't
really matter whether setting this property works or not, so just
remove that part of the test, so this will pass with either old or new
glib.
tests/no-ssl-test.c | 5 -----
1 files changed, 0 insertions(+), 5 deletions(-)
---
diff --git a/tests/no-ssl-test.c b/tests/no-ssl-test.c
index 89a7520..f442ea0 100644
--- a/tests/no-ssl-test.c
+++ b/tests/no-ssl-test.c
@@ -92,13 +92,8 @@ do_session_property_tests (void)
"ssl-use-system-ca-file", TRUE,
NULL);
g_object_get (G_OBJECT (session),
- "ssl-use-system-ca-file", &use_system,
"ssl-ca-file", &ca_file,
NULL);
- if (use_system) {
- debug_printf (1, " setting ssl-use-system-ca-file did not fail\n");
- errors++;
- }
if (ca_file) {
debug_printf (1, " setting ssl-use-system-ca-file set ssl-ca-file\n");
errors++;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]