From: t0m Date: Sun, 7 Jun 2009 00:13:53 +0000 (+0100) Subject: Fix starting test server X-Git-Tag: 0.05~4 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Engine-STOMP.git;a=commitdiff_plain;h=3a0d5cfcb16399dc7b0c166c7bbfc5f029354770 Fix starting test server --- diff --git a/t/lib/TestServer.pm b/t/lib/TestServer.pm index 2ce73a2..9061be2 100644 --- a/t/lib/TestServer.pm +++ b/t/lib/TestServer.pm @@ -12,6 +12,7 @@ use warnings; use Alien::ActiveMQ; use Test::More; use Exporter qw/import/; +use FindBin; our $ACTIVEMQ_VERSION = '5.2.0'; @@ -42,7 +43,7 @@ sub start_server { $SIG{CHLD} = 'IGNORE'; unless (fork()) { - system("$^X -Ilib -Itestapp/lib testapp/script/stomptestapp_stomp.pl --oneshot"); + system("$^X -I$FindBin::Bin/lib $FindBin::Bin/script/stomptestapp_stomp.pl --oneshot"); exit 0; } print STDERR "server started, waiting for spinup...";