comparison debug_connection.t @ 392:c28ecaef065f

Tests: try_run() introduced. This method replaces multiple ad-hoc solutions to grecefully skip tests if nginx startup fails, e.g., due to no support for a particular directive.
author Maxim Dounin <mdounin@mdounin.ru>
date Fri, 18 Apr 2014 18:36:26 +0400
parents ad51e58c2d7a
children 847ea345becb
comparison
equal deleted inserted replaced
391:915ef26ac6eb 392:c28ecaef065f
52 } 52 }
53 } 53 }
54 54
55 EOF 55 EOF
56 56
57 eval { 57 $t->try_run('no inet6 support')->plan(5);
58 open OLDERR, ">&", \*STDERR; close STDERR;
59 $t->run();
60 open STDERR, ">&", \*OLDERR;
61 };
62 plan(skip_all => 'no inet6 support') if $@;
63
64 $t->plan(5);
65 58
66 ############################################################################### 59 ###############################################################################
67 60
68 my $d = $t->testdir(); 61 my $d = $t->testdir();
69 62