From: Daniel Stenberg Date: Mon, 6 Aug 2001 12:10:00 +0000 (+0000) Subject: adjusted to the correct treatmeant of file:// URLs X-Git-Tag: curl-7_8_1~131 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=72e67d3b9d3c2a3d057e2c9aaa4ecb0943edbd5e;p=thirdparty%2Fcurl.git adjusted to the correct treatmeant of file:// URLs --- diff --git a/tests/data/test200 b/tests/data/test200 index 19d44eb16b..709de52fe6 100644 --- a/tests/data/test200 +++ b/tests/data/test200 @@ -12,10 +12,10 @@ moo # Client-side -file:// with relative path +basic file:// file -file://log/test200.txt +file://localhost/%PWD/log/test200.txt foo diff --git a/tests/runtests.pl b/tests/runtests.pl index ac87beb09f..d2132c325c 100755 --- a/tests/runtests.pl +++ b/tests/runtests.pl @@ -68,6 +68,9 @@ my $debugprotocol; my $anyway; my $gdbthis; # run test case with gdb debugger my $keepoutfiles; # keep stdout and stderr files after tests +my $pwd; # current working directory + +chomp($pwd = `pwd`); ####################################################################### # Return the pid of the server as found in the given pid file @@ -443,6 +446,8 @@ sub singletest { $cmd =~ s/%FTPPORT/$FTPPORT/g; $cmd =~ s/%FTPSPORT/$FTPSPORT/g; $cmd =~ s/%SRCDIR/$srcdir/g; + $cmd =~ s/%PWD/$pwd/g; + #$cmd =~ s/%HOSTNAME/$HOSTNAME/g; if($memory_debug) {