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

Johnny Chen johnny.chen at apple.com
Wed Dec 1 15:07:37 PST 2010


Author: johnny
Date: Wed Dec  1 17:07:36 2010
New Revision: 120623

URL: http://llvm.org/viewvc/llvm-project?rev=120623&view=rev
Log:
TestBase.setUp() needs to make sure lldb.blacklist is not None
before iterating on it.

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=120623&r1=120622&r2=120623&view=diff
==============================================================================
--- lldb/trunk/test/lldbtest.py (original)
+++ lldb/trunk/test/lldbtest.py Wed Dec  1 17:07:36 2010
@@ -451,12 +451,13 @@
         #import traceback
         #traceback.print_stack()
 
-        className = self.__class__.__name__
-        classAndMethodName = "%s.%s" % (className, self._testMethodName)
-        if className in lldb.blacklist:
-            self.skipTest(lldb.blacklist.get(className))
-        elif classAndMethodName in lldb.blacklist:
-            self.skipTest(lldb.blacklist.get(classAndMethodName))
+        if lldb.blacklist:
+            className = self.__class__.__name__
+            classAndMethodName = "%s.%s" % (className, self._testMethodName)
+            if className in lldb.blacklist:
+                self.skipTest(lldb.blacklist.get(className))
+            elif classAndMethodName in lldb.blacklist:
+                self.skipTest(lldb.blacklist.get(classAndMethodName))
 
         if ("LLDB_WAIT_BETWEEN_TEST_CASES" in os.environ and
             os.environ["LLDB_WAIT_BETWEEN_TEST_CASES"] == 'YES'):





More information about the lldb-commits mailing list