Two changes:
authorReid Spencer <rspencer@reidspencer.com>
Sun, 15 Apr 2007 20:43:36 +0000 (20:43 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Sun, 15 Apr 2007 20:43:36 +0000 (20:43 +0000)
1. Don't bother truncating reading of the file. It doesn't save that much
   time and we should support putting RUN lines anywhere in the file. For
   example, someone might want to put the grep match before each function
   in the test file which would sprinkle the RUN: lines throughout the file.
2. Fix a bug with llvmgcc version match .. global var wasn't declared as such

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36085 91177308-0d34-0410-b5e6-96231b3b80d8

test/lib/llvm.exp

index f508c8c89d29d4e6078c14d5c5fea78e87d7503f..16c1adc25ea0a6e85caf1ff3be77c914808f22ae 100644 (file)
@@ -76,7 +76,7 @@ proc substitute { line test tmpFile } {
 }
 
 proc RunLLVMTests { test_source_files } {
-  global srcroot objroot srcdir objdir subdir target_triplet
+  global srcroot objroot srcdir objdir subdir target_triplet llvmgcc_version
   set timeout 60
 
   set path [file join $objdir $subdir]
@@ -106,7 +106,7 @@ proc RunLLVMTests { test_source_files } {
     set testFileId [ open $test r]
     set runline ""
     set PRNUMS ""
-    foreach line [split [read $testFileId 4096] \n] {
+    foreach line [split [read $testFileId] \n] {
 
       # if its the END. line then stop parsing (optimization for big files)
       if {[regexp {END.[ *]$} $line match endofscript]} {