shlist

share and manage lists between multiple people
Log | Files | Refs

commit 9605a0f615bc717b0cff282558c9151212775655
parent 1765b5ab9774cefb672d750ae10490b7e937ca10
Author: kyle <kyle@getaddrinfo.net>
Date:   Sat, 27 Feb 2016 20:15:35 -0500

server: make no_ssl_fails test OS dependent

Diffstat:
Mserver/t/no_ssl_fails.t | 10+++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/server/t/no_ssl_fails.t b/server/t/no_ssl_fails.t @@ -21,4 +21,12 @@ while (!defined $socket) { my $good_errno = 'Illegal seek'; $socket->syswrite("a\0\0\0" x 787); -ok($s->readline(), '/SSL accept attempt failed error:140760FC:SSL routines:SSL23_GET_CLIENT_HELLO:unknown protocol/'); +my $ssl_err = ''; +if ($^O eq 'linux') { + $ssl_err = '/SSL accept attempt failed with unknown error error:140760FC:SSL routines:SSL23_GET_CLIENT_HELLO:unknown protocol/'; +} +elsif ($^O eq 'openbsd') { + $ssl_err = '/SSL accept attempt failed error:140760FC:SSL routines:SSL23_GET_CLIENT_HELLO:unknown protocol/'; +} + +ok( $s->readline(), $ssl_err );