Fix by Yavor Doganiv ... disable certificate expiry test except on 64bit systems, because old 32bit systems can't cope with the test certificate end date.

This commit is contained in:
Richard Frith-Macdonald 2020-06-12 09:11:41 +01:00
parent 057445b4e7
commit c04911d84f

View file

@ -27,9 +27,12 @@ START_SET("TLS support")
expiresAt = [c expiresAt: 0];
dateFormatter = [[NSDateFormatter alloc] init];
[dateFormatter setDateFormat: @"yyyy-MM-dd HH:mm:ss zzz"];
/* Test guaranteed to fail on 32-bit architectures. */
#if __LP64__
PASS_EQUAL(expiresAt,
[dateFormatter dateFromString: @"2118-12-14 15:35:11 +0000"],
"Expiration date can be retrieved");
#endif
[dateFormatter release];
PASS_EQUAL([c expiresAt], expiresAt,
"Expiration for entire list is that of the single item")