summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorWill Thompson <will.thompson@collabora.co.uk>2013-01-22 16:22:27 +0000
committerWill Thompson <will.thompson@collabora.co.uk>2013-01-22 16:44:11 +0000
commitb02a6be37011696d9416d5debf6af21ece98d3bd (patch)
tree19a52e6ff12365904ba0ef6795efc77d7d8dcad9 /tests
parentd3d17080b3f355ba1d0962e7a6fd087302605b20 (diff)
connector-test: avoid using system-wide CAs
This shouldn't affect the outcome of the tests, because we don't check with any certificates signed by system-wide CAs. But just for completeness... Reviewed-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
Diffstat (limited to 'tests')
-rw-r--r--tests/wocky-connector-test.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/wocky-connector-test.c b/tests/wocky-connector-test.c
index 05c1bf9..78b4238 100644
--- a/tests/wocky-connector-test.c
+++ b/tests/wocky-connector-test.c
@@ -3541,6 +3541,10 @@ run_test (gpointer data)
"tls-handler" , handler,
NULL);
+ /* Make sure we only use the test CAs, not system-wide ones. */
+ wocky_tls_handler_forget_cas (handler);
+ g_assert (wocky_tls_handler_get_cas (handler) == NULL);
+
/* check if the cert paths are valid */
g_assert (g_file_test (TLS_CA_CRT_FILE, G_FILE_TEST_EXISTS));