X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Engine-STOMP.git;a=blobdiff_plain;f=t%2Flib%2FTestServer.pm;h=9061be256e4c8e69bb238b4cc9abb9d583dc864e;hp=2ce73a2f9c764fb1762ead6ea4d529b65d11181a;hb=3a0d5cfcb16399dc7b0c166c7bbfc5f029354770;hpb=0ffa11aee79c798143d8939a5e44abb1e5f3549e 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...";