Fix symlink.t check to run with builddir != srcdir
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2115 152afb58-edef-0310-8abb-c4023f1b3aa9svn/tags/lighttpd-1.4.19
parent
1431deba81
commit
0663d67c1a
|
@ -13,7 +13,7 @@ use LightyTest;
|
|||
|
||||
my $tf = LightyTest->new();
|
||||
my $t;
|
||||
my $docroot = "$tf->{'SRCDIR'}/tmp/lighttpd/servers/www.example.org/pages/";
|
||||
my $docroot = $tf->{'TESTDIR'}."/tmp/lighttpd/servers/www.example.org/pages";
|
||||
|
||||
sub init_testbed {
|
||||
return 0 unless eval { symlink("",""); 1 };
|
||||
|
@ -28,7 +28,7 @@ sub init_testbed {
|
|||
$rc = undef;
|
||||
unless (-l $l) {
|
||||
return 0 unless symlink($f,$l);
|
||||
};
|
||||
}
|
||||
return 1;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue