]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
adjusted to the correct treatmeant of file:// URLs
authorDaniel Stenberg <daniel@haxx.se>
Mon, 6 Aug 2001 12:10:00 +0000 (12:10 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 6 Aug 2001 12:10:00 +0000 (12:10 +0000)
tests/data/test200
tests/runtests.pl

index 19d44eb16bbe5d270edd07a0600bd3ce84472ed9..709de52fe61fd4dfe2771c571e589bc2e6e0181b 100644 (file)
@@ -12,10 +12,10 @@ moo
 # Client-side
 <client>
  <name>
-file:// with relative path
+basic file:// file
  </name>
  <command>
-file://log/test200.txt
+file://localhost/%PWD/log/test200.txt
 </command>
 <file name="log/test200.txt">
 foo
index ac87beb09fa64ea23fd9bafe62433e555f67987f..d2132c325ca30c306d7d292a613da06d4366ada4 100755 (executable)
@@ -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) {