comparison h2_server_tokens.t @ 1900:236d038dc04a

Tests: suppress "listen .. http2;" deprecation warnings.
author Sergey Kandaurov <pluknet@nginx.com>
date Wed, 31 May 2023 13:29:34 +0400
parents 5f46af4707e7
children 78452573505c
comparison
equal deleted inserted replaced
1899:a0ee073760c5 1900:236d038dc04a
21 ############################################################################### 21 ###############################################################################
22 22
23 select STDERR; $| = 1; 23 select STDERR; $| = 1;
24 select STDOUT; $| = 1; 24 select STDOUT; $| = 1;
25 25
26 my $t = Test::Nginx->new()->has(qw/http http_v2 rewrite/) 26 my $t = Test::Nginx->new()->has(qw/http http_v2 rewrite/)->plan(12)
27 ->write_file_expand('nginx.conf', <<'EOF'); 27 ->write_file_expand('nginx.conf', <<'EOF');
28 28
29 %%TEST_GLOBALS%% 29 %%TEST_GLOBALS%%
30 30
31 daemon off; 31 daemon off;
86 } 86 }
87 } 87 }
88 88
89 EOF 89 EOF
90 90
91 $t->run()->plan(12); 91 # suppress deprecation warning
92
93 open OLDERR, ">&", \*STDERR; close STDERR;
94 $t->run();
95 open STDERR, ">&", \*OLDERR;
92 96
93 ############################################################################### 97 ###############################################################################
94 98
95 my $re = qr/nginx\/\d+\.\d+\.\d+/; 99 my $re = qr/nginx\/\d+\.\d+\.\d+/;
96 100