diff options
author | Andy Polyakov <appro@openssl.org> | 2018-03-24 20:45:43 +0100 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2018-04-08 11:17:44 +0200 |
commit | f5e3115361f9e6f6407379d6c262b346e32ea25c (patch) | |
tree | 4800c1ddf74c6442a4952ab16032aead523d0e27 /test/asn1_time_test.c | |
parent | Updated to CONTRIBUTING to reflect GitHub, etc. (diff) | |
download | openssl-f5e3115361f9e6f6407379d6c262b346e32ea25c.tar.xz openssl-f5e3115361f9e6f6407379d6c262b346e32ea25c.zip |
test/asn1_time_test.c: make it work on 64-bit HP-UX.
HP-UX gmtime fails with ERANGE past 19011213204552Z, so skip some tests.
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5742)
Diffstat (limited to 'test/asn1_time_test.c')
-rw-r--r-- | test/asn1_time_test.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/asn1_time_test.c b/test/asn1_time_test.c index 25105c6b72..1df630f2da 100644 --- a/test/asn1_time_test.c +++ b/test/asn1_time_test.c @@ -346,10 +346,12 @@ int setup_tests(void) if (sizeof(time_t) > sizeof(uint32_t)) { TEST_info("Adding 64-bit time_t tests"); ADD_ALL_TESTS(test_table_pos_64bit, OSSL_NELEM(tbl_testdata_pos_64bit)); +#ifndef __hpux if (!(t > 0) && ptm != NULL) { TEST_info("Adding negative-sign 64-bit time_t tests"); ADD_ALL_TESTS(test_table_neg_64bit, OSSL_NELEM(tbl_testdata_neg_64bit)); } +#endif } ADD_ALL_TESTS(test_table_compare, OSSL_NELEM(tbl_compare_testdata)); return 1; |