Fix error in testing for END. notation.
Patch by Julien Lerouge. Thanks!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48342 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/lib/llvm.exp b/test/lib/llvm.exp
index 78e3e83..b59f341 100644
--- a/test/lib/llvm.exp
+++ b/test/lib/llvm.exp
@@ -119,7 +119,7 @@
foreach line [split [read $testFileId] \n] {
# if its the END. line then stop parsing (optimization for big files)
- if {[regexp {END.[ *]$} $line match endofscript]} {
+ if {[regexp {END.[[:space:]]*$} $line match endofscript]} {
break
# if the line is continued, concatenate and continue the loop