aboutsummaryrefslogtreecommitdiff
path: root/test/cmp_hdr_test.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2021-06-29 14:12:28 +0100
committerMatt Caswell <matt@openssl.org>2021-07-02 17:44:02 +0100
commit4616a61416e7ea860e871001879e735943434f00 (patch)
tree54eea777966de4efacdc2a42c1f03aac89bec399 /test/cmp_hdr_test.c
parent53d0d01fd48867494be4c33faf0604cd58458c9d (diff)
downloadopenssl-4616a61416e7ea860e871001879e735943434f00.zip
openssl-4616a61416e7ea860e871001879e735943434f00.tar.gz
openssl-4616a61416e7ea860e871001879e735943434f00.tar.bz2
Use TEST_time_t_* functions in cmp_hrd_test.c
This gives better diagnostic output Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/15939)
Diffstat (limited to 'test/cmp_hdr_test.c')
-rw-r--r--test/cmp_hdr_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/cmp_hdr_test.c b/test/cmp_hdr_test.c
index f4bc65b..178a133 100644
--- a/test/cmp_hdr_test.c
+++ b/test/cmp_hdr_test.c
@@ -172,11 +172,11 @@ static int execute_HDR_update_messageTime_test(CMP_HDR_TEST_FIXTURE *fixture)
return 0;
hdrtime = mktime(&hdrtm);
- if (!TEST_true(before <= hdrtime))
+ if (!TEST_time_t_le(before, hdrtime))
return 0;
now = time(NULL);
after = mktime(gmtime(&now));
- return TEST_true(hdrtime <= after);
+ return TEST_time_t_le(hdrtime, after);
}
static int test_HDR_update_messageTime(void)