summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSiraj Razick <siraj.razick@collabora.co.uk>2012-04-05 10:59:43 -0400
committerNicolas Dufresne <nicolas.dufresne@collabora.com>2012-04-05 11:00:16 -0400
commita5feff5ff5ed88739e91cfc0a19d3cb4deb4c4f3 (patch)
tree4bf3363173f51ce716b602d8a529916209f13296 /tests
parente2b1699db4d8d2102f658d7b9ac09909ce86aac7 (diff)
Check the validity of TLS_CA_CRT_FILE and TLS_CRL_DIR
The test cases should fail with a more obvious error when passing non-existent directories and certificates. https://bugs.freedesktop.org/show_bug.cgi?id=43844
Diffstat (limited to 'tests')
-rw-r--r--tests/wocky-connector-test.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/wocky-connector-test.c b/tests/wocky-connector-test.c
index 6ca489f..f1ec388 100644
--- a/tests/wocky-connector-test.c
+++ b/tests/wocky-connector-test.c
@@ -3323,6 +3323,9 @@ run_test (gpointer data)
"tls-handler" , handler,
NULL);
+ /* check if the cert paths are valid */
+ g_assert (g_file_test (TLS_CA_CRT_FILE, G_FILE_TEST_EXISTS));
+
wocky_tls_handler_add_ca (handler, ca);
g_object_unref (handler);