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-c4023f1b3aa9
svn/tags/lighttpd-1.4.19
Stefan Bühler 2008-03-02 12:59:54 +00:00
parent 1431deba81
commit 0663d67c1a
1 changed files with 2 additions and 2 deletions

View File

@ -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;
};