Browse Source

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 13 years ago
parent
commit
0663d67c1a
  1. 4
      tests/symlink.t

4
tests/symlink.t

@ -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…
Cancel
Save