X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/deb4d2dbb676d7d6f69dfe7815d6e0cb09bd4a44..53593baa211863fbf66540cf1bcc36c8fb37257f:/t/test.pl diff --git a/t/test.pl b/t/test.pl index d9fdaf495..ccdab4077 100755 --- a/t/test.pl +++ b/t/test.pl @@ -8,9 +8,14 @@ use Test::Harness qw(runtests execute_tests); use Getopt::Long; BEGIN { - $ENV{HARNESS_OPTIONS} = 'c'; - unshift @INC, 'modules/override'; - push @INC, 'modules/fallback'; + use FindBin; + + unshift(@INC, $FindBin::Bin . '/../modules/override'); # Use our own versions of various modules (e.g. YAML). + push (@INC, $FindBin::Bin . '/..'); # '.' will be removed from @INC soon. + + $ENV{HARNESS_OPTIONS} = 'c'; + + chdir($FindBin::Bin . '/..'); } my @exclude_for_fast = (