comparison access.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 2da774b0fc7d
children 847ea345becb
comparison
equal deleted inserted replaced
391:915ef26ac6eb 392:c28ecaef065f
80 } 80 }
81 } 81 }
82 82
83 EOF 83 EOF
84 84
85 eval { 85 $t->try_run('no inet6 and/or unix support')->plan(12);
86 open OLDERR, ">&", \*STDERR; close STDERR;
87 $t->run();
88 open STDERR, ">&", \*OLDERR;
89 };
90 plan(skip_all => 'no inet6 and/or unix support') if $@;
91
92 $t->plan(12);
93 86
94 ############################################################################### 87 ###############################################################################
95 88
96 # tests with inet socket 89 # tests with inet socket
97 90