From: Nicholas Nethercote Date: Fri, 3 Nov 2006 19:35:20 +0000 (+0000) Subject: Fix for nested subdirs X-Git-Tag: svn/VALGRIND_3_3_0~541 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=378f8207756dd2456d9b8b48b28fed187d343cee;p=thirdparty%2Fvalgrind.git Fix for nested subdirs git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6343 --- diff --git a/perf/vg_perf.in b/perf/vg_perf.in index 8f859027e4..129d8c491d 100644 --- a/perf/vg_perf.in +++ b/perf/vg_perf.in @@ -353,6 +353,8 @@ sub test_one_dir($$) my ($dir, $prev_dirs) = @_; $dir =~ s/\/$//; # trim a trailing '/' + chomp(my $initial_dir = `pwd`); # record where we started + # Ignore dirs into which we should not recurse. if ($dir =~ /^(BitKeeper|CVS|SCCS|docs|doc)$/) { return; } @@ -379,7 +381,7 @@ sub test_one_dir($$) print "-- Finished tests in $full_dir $dashes\n"; } - chdir(".."); + chdir("$initial_dir"); } #----------------------------------------------------------------------------