comparison ssl_verify_client.t @ 1260:eadd24ccfda1

Tests: postponed startup in certain ssl certificate tests on win32. At least, some win32 hosts exhibit a round-off error or some such in the notBefore field of the certificate generated before starting nginx, such that it can be set to the value one second ahead of the current time. This manifests in spurious test failures due to certificate verify error with a failure reason "certificate is not yet valid".
author Sergey Kandaurov <pluknet@nginx.com>
date Tue, 12 Dec 2017 12:53:53 +0300
parents 0af58b78df35
children 1d7c87dba788
comparison
equal deleted inserted replaced
1259:caf59f42a3e1 1260:eadd24ccfda1
111 . "-out $d/$name.crt -keyout $d/$name.key " 111 . "-out $d/$name.crt -keyout $d/$name.key "
112 . ">>$d/openssl.out 2>&1") == 0 112 . ">>$d/openssl.out 2>&1") == 0
113 or die "Can't create certificate for $name: $!\n"; 113 or die "Can't create certificate for $name: $!\n";
114 } 114 }
115 115
116 sleep 1 if $^O eq 'MSWin32';
117
116 $t->write_file('t', 'SEE-THIS'); 118 $t->write_file('t', 'SEE-THIS');
117 119
118 $t->run(); 120 $t->run();
119 121
120 ############################################################################### 122 ###############################################################################