Skip to content

Commit

Permalink
test/asn1_time_test.c: make it work on 64-bit HP-UX.
Browse files Browse the repository at this point in the history
HP-UX gmtime fails with ERANGE past 19011213204552Z, so skip some tests.

Reviewed-by: Richard Levitte <[email protected]>
(Merged from openssl#5742)
  • Loading branch information
Andy Polyakov committed Apr 8, 2018
1 parent 2876872 commit f5e3115
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/asn1_time_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f5e3115

Please sign in to comment.