From 278a6b5045ec63bd27784cd25727994ff2996ecb Mon Sep 17 00:00:00 2001 From: Patrick Jenkins Date: Thu, 27 Jul 2006 19:22:06 +0000 Subject: [PATCH] Fixed a stupid error where changedir returned false upon success. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29357 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/NewNightlyTest.pl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/utils/NewNightlyTest.pl b/utils/NewNightlyTest.pl index 302009124dd..0a604d3f2ca 100755 --- a/utils/NewNightlyTest.pl +++ b/utils/NewNightlyTest.pl @@ -307,7 +307,6 @@ sub ChangeDir { # directory, logical name print "ERROR!!! Cannot change directory to: $name ($dir) because $!"; return -1; } - return 0; } #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -783,7 +782,7 @@ my ($WarningsAdded, $WarningsRemoved) = DiffFiles "-Warnings.txt"; sub TestDirectory { my $SubDir = shift; - ChangeDir( "projects/llvm-test/$SubDir", "Programs Test Subdirectory" ) || return ("", ""); + ChangeDir( "$BuildDir/llvm/projects/llvm-test/$SubDir", "Programs Test Subdirectory" ) || return ("", ""); my $ProgramTestLog = "$Prefix-$SubDir-ProgramTest.txt";