mirror of
https://github.com/openssl/openssl.git
synced 2025-02-23 14:42:15 +08:00
80-test_cmp_http.t: Improve comparison on server_port variable
Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/15592)
This commit is contained in:
parent
43c2456f0f
commit
c796cc9768
@ -277,7 +277,7 @@ sub start_mock_server {
|
||||
die "Invalid port: $server_port" unless $server_port =~ m/^\d+$/;
|
||||
my $pid = open($server_fh, "$cmd|") or die "Trying to $cmd";
|
||||
print "Pid is: $pid\n";
|
||||
if ($server_port eq "0") {
|
||||
if ($server_port == 0) {
|
||||
# Find out the actual server port
|
||||
while (<$server_fh>) {
|
||||
print;
|
||||
|
Loading…
Reference in New Issue
Block a user