Skip to content

Commit 018460f

Browse files
committed
Tests: suppress "listen .. http2;" deprecation warnings.
1 parent 1346652 commit 018460f

32 files changed

+161
-17
lines changed

grpc.t

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,11 @@ http {
9090
9191
EOF
9292

93+
# suppress deprecation warning
94+
95+
open OLDERR, ">&", \*STDERR; close STDERR;
9396
$t->run();
97+
open STDERR, ">&", \*OLDERR;
9498

9599
###############################################################################
96100

grpc_next_upstream.t

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,11 @@ http {
106106
107107
EOF
108108

109+
# suppress deprecation warning
110+
111+
open OLDERR, ">&", \*STDERR; close STDERR;
109112
$t->run();
113+
open STDERR, ">&", \*OLDERR;
110114

111115
###############################################################################
112116

grpc_pass.t

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,12 @@ foreach my $name ('localhost') {
9797
}
9898

9999
$t->run_daemon(\&dns_daemon, port(8982), $t);
100+
101+
# suppress deprecation warning
102+
103+
open OLDERR, ">&", \*STDERR; close STDERR;
100104
$t->run()->plan(5);
105+
open STDERR, ">&", \*OLDERR;
101106

102107
$t->waitforfile($t->testdir . '/' . port(8982));
103108

grpc_request_buffering.t

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,11 @@ http {
6464
6565
EOF
6666

67+
# suppress deprecation warning
68+
69+
open OLDERR, ">&", \*STDERR; close STDERR;
6770
$t->run();
71+
open STDERR, ">&", \*OLDERR;
6872

6973
###############################################################################
7074

grpc_ssl.t

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,11 @@ sleep 1 if $^O eq 'MSWin32';
128128

129129
$t->write_file('password', 'client');
130130

131+
# suppress deprecation warning
132+
133+
open OLDERR, ">&", \*STDERR; close STDERR;
131134
$t->run();
135+
open STDERR, ">&", \*OLDERR;
132136

133137
###############################################################################
134138

h2.t

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,11 @@ http {
132132
133133
EOF
134134

135+
# suppress deprecation warning
136+
137+
open OLDERR, ">&", \*STDERR; close STDERR;
135138
$t->run();
139+
open STDERR, ">&", \*OLDERR;
136140

137141
# file size is slightly beyond initial window size: 2**16 + 80 bytes
138142

h2_absolute_redirect.t

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,11 @@ EOF
107107
mkdir($t->testdir() . '/dir');
108108
mkdir($t->testdir() . '/dir sp');
109109

110+
# suppress deprecation warning
111+
112+
open OLDERR, ">&", \*STDERR; close STDERR;
110113
$t->run()->plan(23);
114+
open STDERR, ">&", \*OLDERR;
111115

112116
###############################################################################
113117

h2_auth_request.t

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,11 @@ http {
6666
6767
EOF
6868

69+
# suppress deprecation warning
70+
71+
open OLDERR, ">&", \*STDERR; close STDERR;
6972
$t->run();
73+
open STDERR, ">&", \*OLDERR;
7074

7175
###############################################################################
7276

h2_error_page.t

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,11 @@ http {
5454
5555
EOF
5656

57+
# suppress deprecation warning
58+
59+
open OLDERR, ">&", \*STDERR; close STDERR;
5760
$t->run();
61+
open STDERR, ">&", \*OLDERR;
5862

5963
###############################################################################
6064

h2_fastcgi_request_buffering.t

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ use Test::Nginx::HTTP2;
2323
select STDERR; $| = 1;
2424
select STDOUT; $| = 1;
2525

26-
my $t = Test::Nginx->new()->has(qw/http http_v2 fastcgi/);
26+
my $t = Test::Nginx->new()->has(qw/http http_v2 fastcgi/)->plan(48);
2727

2828
$t->write_file_expand('nginx.conf', <<'EOF');
2929
@@ -52,8 +52,11 @@ http {
5252
5353
EOF
5454

55+
# suppress deprecation warning
56+
57+
open OLDERR, ">&", \*STDERR; close STDERR;
5558
$t->run();
56-
$t->plan(48);
59+
open STDERR, ">&", \*OLDERR;
5760

5861
###############################################################################
5962

0 commit comments

Comments
 (0)