X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/742f62b93b94208e8cbb306706b1a277ea000d64..d6fed9b55a11dca1cfd9cd6f43940a945533d318:/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 = (