# HG changeset patch # User Sergey Kandaurov # Date 1410856296 -14400 # Node ID 0342957cca372b1ef1660a3575a3ed50264db8aa # Parent 272925d99ad5351267c4eda0eefa95ed6572519e Tests: check for nginx binary presence. diff --git a/lib/Test/Nginx.pm b/lib/Test/Nginx.pm --- a/lib/Test/Nginx.pm +++ b/lib/Test/Nginx.pm @@ -46,6 +46,9 @@ sub new { mkdir "$self->{_testdir}/logs" or die "Can't create logs directory: $!\n"; + Test::More::BAIL_OUT("no $NGINX binary found") + unless -x $NGINX; + return $self; }