[Lldb-commits] [lldb] r121039 - /lldb/trunk/test/lldbtest.py

Johnny Chen johnny.chen at apple.com
Mon Dec 6 13:48:09 PST 2010


Author: johnny
Date: Mon Dec  6 15:48:08 2010
New Revision: 121039

URL: http://llvm.org/viewvc/llvm-project?rev=121039&view=rev
Log:
Fail fast by raising an exception if the 'string_to_match' cannot be located
within the file 'filename'.

Modified:
    lldb/trunk/test/lldbtest.py

Modified: lldb/trunk/test/lldbtest.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lldbtest.py?rev=121039&r1=121038&r2=121039&view=diff
==============================================================================
--- lldb/trunk/test/lldbtest.py (original)
+++ lldb/trunk/test/lldbtest.py Mon Dec  6 15:48:08 2010
@@ -213,7 +213,7 @@
             if line.find(string_to_match) != -1:
                 # Found our match.
                 return i+1
-    return -1        
+    raise Exception("Unable to find %s within file %s" % (string_to_match, filename))
 
 def pointer_size():
     """Return the pointer size of the host system."""





More information about the lldb-commits mailing list