Permalink
Browse files

fixed testing issue

  • Loading branch information...
1 parent 47f2cb0 commit ced9567bee4c8c7a0ba29f963cc70d4aeda24d68 @tokuhirom committed Jun 26, 2010
Showing with 5 additions and 1 deletion.
  1. +1 −0 Makefile.PL
  2. +4 −1 t/01_simple.t
View
1 Makefile.PL
@@ -4,6 +4,7 @@ all_from 'lib/Proc/Guard.pm';
requires 'Class::Accessor::Lite';
requires 'Exporter' => 5.63;
+requires 'Test::More' => 0.94;
readme_markdown_from 'lib/Proc/Guard.pm';
tests 't/*.t t/*/*.t t/*/*/*.t t/*/*/*/*.t';
View
5 t/01_simple.t
@@ -4,8 +4,11 @@ use Test::More;
use Test::Requires qw/File::Which Test::TCP/;
use Proc::Guard;
+my $memcached_bin = File::Which::which('memcached');
+plan skip_all => "This test requires memcached binary" unless $memcached_bin;
+
my $port = Test::TCP::empty_port();
-my $proc = proc_guard(File::Which::which('memcached'), '-p', $port);
+my $proc = proc_guard($memcached_bin, '-p', $port);
ok $proc->pid, 'memcached: ' . $proc->pid;
Test::TCP::wait_port($port);

0 comments on commit ced9567

Please sign in to comment.