diff debug_connection_syslog.t @ 1046:a04323ab0622

Tests: use try_run() in debug_connection_syslog.t.
author Andrey Zelenkov <zelenkov@nginx.com>
date Wed, 05 Oct 2016 14:48:19 +0300
parents 882267679006
children 6620cd57a96a
line wrap: on
line diff
--- a/debug_connection_syslog.t
+++ b/debug_connection_syslog.t
@@ -52,14 +52,7 @@ http {
 
 EOF
 
-eval {
-	open OLDERR, ">&", \*STDERR; close STDERR;
-	$t->run();
-	open STDERR, ">&", \*OLDERR;
-};
-plan(skip_all => 'no inet6 support') if $@;
-
-$t->plan(5);
+$t->try_run('no inet6 support')->plan(5);
 
 ###############################################################################