changeset 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 3667fe923239
children ef795982f940
files debug_connection_syslog.t
diffstat 1 files changed, 1 insertions(+), 8 deletions(-) [+]
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);
 
 ###############################################################################