Fixed a stupid error where changedir returned false upon success.

llvm-svn: 29357
This commit is contained in:
Patrick Jenkins 2006-07-27 19:22:06 +00:00
parent 9d77695860
commit 32c79d77eb

View File

@ -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";