From: Heiko Schlittermann (HS12-RIPE) Date: Thu, 3 Nov 2016 08:45:17 +0000 (+0100) Subject: Testsuite: check dynamic port >= 1024 to avoid permission problems X-Git-Tag: exim-4_88_RC4~14 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=58ae4e3edecdab20a77dd8c68698ed0015ae12f4;p=exim.git Testsuite: check dynamic port >= 1024 to avoid permission problems --- diff --git a/test/t/00-basic.t b/test/t/00-basic.t index 3d5503a08..af7414aa2 100644 --- a/test/t/00-basic.t +++ b/test/t/00-basic.t @@ -20,6 +20,7 @@ subtest 'dynamic_socket' => sub { ok my $socket = Exim::Runtest::dynamic_socket() => 'got a socket'; diag "got socket on port @{[$socket->sockport]}"; isa_ok $socket => 'IO::Socket::INET'; + cmp_ok $socket->sockport(), '>=', 1024 => 'port is >= 1024'; $socket->close; };