wibbles


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1184 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/tests/vg_regtest.in b/tests/vg_regtest.in
index ed88a41..56d37d1 100755
--- a/tests/vg_regtest.in
+++ b/tests/vg_regtest.in
@@ -296,7 +296,8 @@
 
     chdir($dir) or die "Could not change into $dir\n";
 
-    my $full_dir = "$prev_dirs/$dir";
+    # Nb: Don't prepend a '/' to the base directory
+    my $full_dir = $prev_dirs . ($prev_dirs eq "" ? "" : "/") . $dir;
     my $dashes = "-" x (50 - length $full_dir);
 
     my @fs = glob "*";
@@ -349,7 +350,7 @@
 my @fs = process_command_line();
 foreach my $f (@fs) {
     if (-d $f) {
-        test_one_dir($f, ".");
+        test_one_dir($f, "");
     } else { 
         # Allow the .vgtest suffix to be given or omitted
         if ($f =~ /.vgtest$/ && -r $f) {