[glib-networking/wip/smcv/time-t] Apply 1 suggestion(s) to 1 file(s)
- From: Simon McVittie <smcv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib-networking/wip/smcv/time-t] Apply 1 suggestion(s) to 1 file(s)
- Date: Tue, 21 Sep 2021 16:39:21 +0000 (UTC)
commit 24f45d10cc895cca668e29b474901b16d335527f
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Tue Sep 21 16:39:20 2021 +0000
Apply 1 suggestion(s) to 1 file(s)
tls/tests/certificate.c | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/tls/tests/certificate.c b/tls/tests/certificate.c
index dc3433fd..d216c710 100644
--- a/tls/tests/certificate.c
+++ b/tls/tests/certificate.c
@@ -695,14 +695,12 @@ test_certificate_not_valid_after (void)
#if SIZEOF_TIME_T <= 4
if (g_date_time_to_unix (actual) == GNUTLS_32_BIT_NOT_VALID_AFTER_MAX)
- {
- g_test_incomplete ("not-valid-after date not representable on 32-bit");
- }
+ g_test_incomplete ("not-valid-after date not representable on 32-bit");
else
+ g_assert_cmpstr (actual_str, ==, EXPECTED_NOT_VALID_AFTER);
+#else
+ g_assert_cmpstr (actual_str, ==, EXPECTED_NOT_VALID_AFTER);
#endif
- {
- g_assert_cmpstr (actual_str, ==, EXPECTED_NOT_VALID_AFTER);
- }
g_free (actual_str);
g_date_time_unref (actual);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]