[glib-networking] tls/tests: skip test_create_certificate_chain if not running against glib 2.43
- From: Dan Winship <danw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib-networking] tls/tests: skip test_create_certificate_chain if not running against glib 2.43
- Date: Sat, 13 Dec 2014 14:26:26 +0000 (UTC)
commit 6b06be0a51463d5ba1660d40fdbe3fc9e2cc391e
Author: Iain Lane <iain lane canonical com>
Date: Wed Dec 10 12:05:19 2014 +0000
tls/tests: skip test_create_certificate_chain if not running against glib 2.43
https://bugzilla.gnome.org/show_bug.cgi?id=741331
tls/tests/certificate.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/tls/tests/certificate.c b/tls/tests/certificate.c
index 97c1793..7d3f031 100644
--- a/tls/tests/certificate.c
+++ b/tls/tests/certificate.c
@@ -226,6 +226,12 @@ test_create_certificate_chain (void)
GTlsCertificate *cert, *intermediate, *root;
GError *error = NULL;
+ if (glib_check_version (2, 43, 0))
+ {
+ g_test_skip ("This test requires glib 2.43");
+ return;
+ }
+
cert = g_tls_certificate_new_from_file (tls_test_file_path ("chain.pem"), &error);
g_assert_no_error (error);
g_assert (G_IS_TLS_CERTIFICATE (cert));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]