BEGIN {
chdir 't' if -d 't';
- @INC = '../lib';
+ # We need '../../lib' as well as '../lib' because parts of Config are
+ # delay-loaded, after we've chdir()'ed into $testdir.
+ @INC = ('../lib', '../../lib');
# XXX this could be further munged to enable some parts on other
# platforms
unless ($^O =~ /^MSWin/) {
{
int i;
#ifdef __BORLANDC__
- char *h,*s = GetCommandLine();
+ char *s = GetCommandLine();
int j=0;
av[0] = s;
if (s[0]=='"') {