diff options
author | Dan Winship <danw@gnome.org> | 2010-12-10 10:27:39 +0100 |
---|---|---|
committer | Dan Winship <danw@gnome.org> | 2010-12-10 10:29:04 +0100 |
commit | ec1c3ff3289d7130a8b7354bdee09f24c3ab9962 (patch) | |
tree | dbf7790266519e79aa0697092ac3ac8b39d0ad9a /tests/test-utils.c | |
parent | 47a50352f20867f0dc53843b682f6c37e09ea6e2 (diff) | |
download | libsoup-ec1c3ff3289d7130a8b7354bdee09f24c3ab9962.tar.gz |
Add glib-networking to the MISSING_REGRESSION_TEST_PACKAGES checks
and make timeout-test and proxy-test skip their https tests if
it's not available
Diffstat (limited to 'tests/test-utils.c')
-rw-r--r-- | tests/test-utils.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/test-utils.c b/tests/test-utils.c index 750da72c..15495a0b 100644 --- a/tests/test-utils.c +++ b/tests/test-utils.c @@ -18,7 +18,7 @@ static gboolean apache_running; static SoupLogger *logger; int debug_level, errors; -gboolean expect_warning; +gboolean expect_warning, tls_available; static int http_debug_level; static gboolean @@ -79,6 +79,7 @@ test_init (int argc, char **argv, GOptionEntry *entries) GOptionContext *opts; char *name; GError *error = NULL; + GTlsBackend *tls_backend; g_thread_init (NULL); g_type_init (); @@ -108,6 +109,9 @@ test_init (int argc, char **argv, GOptionEntry *entries) signal (SIGINT, quit); g_log_set_default_handler (test_log_handler, NULL); + + tls_backend = g_tls_backend_get_default (); + tls_available = g_tls_backend_supports_tls (tls_backend); } void |