Permalink
Browse files

Use same perl interpreter we're running on

If we don't, the integration tests are run with /usr/bin/perl,
which might be completely wrong, or have missing dependencies, etc...

Fixes tons of CPAN testers failure reports for 0.09.
  • Loading branch information...
1 parent 66834b4 commit 4fe6c31cdb30d1fe72521f56560ec4734b7dd505 @cosimo committed Feb 10, 2013
@@ -9,8 +9,8 @@ use Test::Statsd;
use Test::More;
my $t = Test::Statsd->new({
- binary => $ENV{STATSD_BINARY} // "$Bin/../../bin/statsd",
- config => $ENV{STATSD_CONFIG} // "$Bin/../config/testConfig.js",
+ binary => $ENV{STATSD_BINARY} // qq{$^X $Bin/../../bin/statsd},
+ config => $ENV{STATSD_CONFIG} // qq{$Bin/../config/testConfig.js},
});
$t->start_statsd();
@@ -11,8 +11,8 @@ use Test::More;
plan tests => 4;
my $t = Test::Statsd->new({
- binary => $ENV{STATSD_BINARY} // "$Bin/../../bin/statsd",
- config => $ENV{STATSD_CONFIG} // "$Bin/../config/testConfig.js",
+ binary => $ENV{STATSD_BINARY} // qq{$^X $Bin/../../bin/statsd},
+ config => $ENV{STATSD_CONFIG} // qq{$Bin/../config/testConfig.js},
});
$t->start_statsd();
@@ -11,8 +11,8 @@ use Test::More;
plan tests => 3;
my $t = Test::Statsd->new({
- binary => $ENV{STATSD_BINARY} // "$Bin/../../bin/statsd",
- config => $ENV{STATSD_CONFIG} // "$Bin/../config/testConfig.js",
+ binary => $ENV{STATSD_BINARY} // qq{$^X $Bin/../../bin/statsd},
+ config => $ENV{STATSD_CONFIG} // qq{$Bin/../config/testConfig.js},
});
$t->start_statsd();

0 comments on commit 4fe6c31

Please sign in to comment.