[Lldb-commits] [lldb] r116490 - in /lldb/trunk/test: array_types/ bitfields/ breakpoint_command/ breakpoint_locations/ class_types/ enum_types/ foundation/ function_types/ global_variables/ macosx/universal/ set_values/ signal/ stl/ struct_types/ unsigned_types/

Johnny Chen johnny.chen at apple.com
Thu Oct 14 10:31:24 PDT 2010


Author: johnny
Date: Thu Oct 14 12:31:24 2010
New Revision: 116490

URL: http://llvm.org/viewvc/llvm-project?rev=116490&view=rev
Log:
Make calling the super class's setUp() method less fragile.

Modified:
    lldb/trunk/test/array_types/TestArrayTypes.py
    lldb/trunk/test/bitfields/TestBitfields.py
    lldb/trunk/test/breakpoint_command/TestBreakpointCommand.py
    lldb/trunk/test/breakpoint_locations/TestBreakpointLocations.py
    lldb/trunk/test/class_types/TestClassTypes.py
    lldb/trunk/test/class_types/TestClassTypesDisassembly.py
    lldb/trunk/test/enum_types/TestEnumTypes.py
    lldb/trunk/test/foundation/TestObjCMethods.py
    lldb/trunk/test/function_types/TestFunctionTypes.py
    lldb/trunk/test/global_variables/TestGlobalVariables.py
    lldb/trunk/test/macosx/universal/TestUniversal.py
    lldb/trunk/test/set_values/TestSetValues.py
    lldb/trunk/test/signal/TestSendSignal.py
    lldb/trunk/test/stl/TestSTL.py
    lldb/trunk/test/stl/TestStdCXXDisassembly.py
    lldb/trunk/test/struct_types/TestStructTypes.py
    lldb/trunk/test/unsigned_types/TestUnsignedTypes.py

Modified: lldb/trunk/test/array_types/TestArrayTypes.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/array_types/TestArrayTypes.py?rev=116490&r1=116489&r2=116490&view=diff
==============================================================================
--- lldb/trunk/test/array_types/TestArrayTypes.py (original)
+++ lldb/trunk/test/array_types/TestArrayTypes.py Thu Oct 14 12:31:24 2010
@@ -32,7 +32,8 @@
         self.array_types_python()
 
     def setUp(self):
-        super(ArrayTypesTestCase, self).setUp()
+        # Call super's setUp().
+        TestBase.setUp(self)
         # Find the line number to break inside main().
         self.line = line_number('main.c', '// Set break point at this line.')
 

Modified: lldb/trunk/test/bitfields/TestBitfields.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/bitfields/TestBitfields.py?rev=116490&r1=116489&r2=116490&view=diff
==============================================================================
--- lldb/trunk/test/bitfields/TestBitfields.py (original)
+++ lldb/trunk/test/bitfields/TestBitfields.py Thu Oct 14 12:31:24 2010
@@ -32,7 +32,8 @@
         self.bitfields_variable_python()
 
     def setUp(self):
-        super(BitfieldsTestCase, self).setUp()
+        # Call super's setUp().
+        TestBase.setUp(self)
         # Find the line number to break inside main().
         self.line = line_number('main.c', '// Set break point at this line.')
 

Modified: lldb/trunk/test/breakpoint_command/TestBreakpointCommand.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/breakpoint_command/TestBreakpointCommand.py?rev=116490&r1=116489&r2=116490&view=diff
==============================================================================
--- lldb/trunk/test/breakpoint_command/TestBreakpointCommand.py (original)
+++ lldb/trunk/test/breakpoint_command/TestBreakpointCommand.py Thu Oct 14 12:31:24 2010
@@ -27,7 +27,8 @@
         self.breakpoint_command_sequence()
 
     def setUp(self):
-        super(BreakpointCommandTestCase, self).setUp()
+        # Call super's setUp().
+        TestBase.setUp(self)
         # Find the line number to break inside main().
         self.line = line_number('main.c', '// Set break point at this line.')
 

Modified: lldb/trunk/test/breakpoint_locations/TestBreakpointLocations.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/breakpoint_locations/TestBreakpointLocations.py?rev=116490&r1=116489&r2=116490&view=diff
==============================================================================
--- lldb/trunk/test/breakpoint_locations/TestBreakpointLocations.py (original)
+++ lldb/trunk/test/breakpoint_locations/TestBreakpointLocations.py Thu Oct 14 12:31:24 2010
@@ -23,7 +23,8 @@
         self.breakpoint_locations_test()
 
     def setUp(self):
-        super(BreakpointLocationsTestCase, self).setUp()
+        # Call super's setUp().
+        TestBase.setUp(self)
         # Find the line number to break inside main().
         self.line = line_number('main.c', '// Set break point at this line.')
 

Modified: lldb/trunk/test/class_types/TestClassTypes.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/class_types/TestClassTypes.py?rev=116490&r1=116489&r2=116490&view=diff
==============================================================================
--- lldb/trunk/test/class_types/TestClassTypes.py (original)
+++ lldb/trunk/test/class_types/TestClassTypes.py Thu Oct 14 12:31:24 2010
@@ -47,7 +47,8 @@
         self.class_types_expr_parser()
 
     def setUp(self):
-        super(ClassTypesTestCase, self).setUp()
+        # Call super's setUp().
+        TestBase.setUp(self)
         # Find the line number to break for main.cpp.
         self.line = line_number('main.cpp', '// Set break point at this line.')
 

Modified: lldb/trunk/test/class_types/TestClassTypesDisassembly.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/class_types/TestClassTypesDisassembly.py?rev=116490&r1=116489&r2=116490&view=diff
==============================================================================
--- lldb/trunk/test/class_types/TestClassTypesDisassembly.py (original)
+++ lldb/trunk/test/class_types/TestClassTypesDisassembly.py Thu Oct 14 12:31:24 2010
@@ -34,7 +34,8 @@
         self.disassemble_call_stack_api()
 
     def setUp(self):
-        super(IterateFrameAndDisassembleTestCase, self).setUp()
+        # Call super's setUp().
+        TestBase.setUp(self)
         # Find the line number to break for main.cpp.
         self.line = line_number('main.cpp', '// Set break point at this line.')
 

Modified: lldb/trunk/test/enum_types/TestEnumTypes.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/enum_types/TestEnumTypes.py?rev=116490&r1=116489&r2=116490&view=diff
==============================================================================
--- lldb/trunk/test/enum_types/TestEnumTypes.py (original)
+++ lldb/trunk/test/enum_types/TestEnumTypes.py Thu Oct 14 12:31:24 2010
@@ -23,7 +23,8 @@
         self.image_lookup_for_enum_type()
 
     def setUp(self):
-        super(EnumTypesTestCase, self).setUp()
+        # Call super's setUp().
+        TestBase.setUp(self)
         # Find the line number to break inside main().
         self.line = line_number('main.c', '// Set break point at this line.')
 

Modified: lldb/trunk/test/foundation/TestObjCMethods.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/foundation/TestObjCMethods.py?rev=116490&r1=116489&r2=116490&view=diff
==============================================================================
--- lldb/trunk/test/foundation/TestObjCMethods.py (original)
+++ lldb/trunk/test/foundation/TestObjCMethods.py Thu Oct 14 12:31:24 2010
@@ -85,7 +85,8 @@
             substrs = ["Foundation`-[NSAutoreleasePool release]"])
 
     def setUp(self):
-        super(FoundationTestCase, self).setUp()
+        # Call super's setUp().
+        TestBase.setUp(self)
         # Find the line number to break inside main().
         self.line = line_number('main.m', '// Set break point at this line.')
 

Modified: lldb/trunk/test/function_types/TestFunctionTypes.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/function_types/TestFunctionTypes.py?rev=116490&r1=116489&r2=116490&view=diff
==============================================================================
--- lldb/trunk/test/function_types/TestFunctionTypes.py (original)
+++ lldb/trunk/test/function_types/TestFunctionTypes.py Thu Oct 14 12:31:24 2010
@@ -21,7 +21,8 @@
         self.function_types()
 
     def setUp(self):
-        super(FunctionTypesTestCase, self).setUp()
+        # Call super's setUp().
+        TestBase.setUp(self)
         # Find the line number to break inside main().
         self.line = line_number('main.c', '// Set break point at this line.')
 

Modified: lldb/trunk/test/global_variables/TestGlobalVariables.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/global_variables/TestGlobalVariables.py?rev=116490&r1=116489&r2=116490&view=diff
==============================================================================
--- lldb/trunk/test/global_variables/TestGlobalVariables.py (original)
+++ lldb/trunk/test/global_variables/TestGlobalVariables.py Thu Oct 14 12:31:24 2010
@@ -21,7 +21,8 @@
         self.global_variables()
 
     def setUp(self):
-        super(GlobalVariablesTestCase, self).setUp()
+        # Call super's setUp().
+        TestBase.setUp(self)
         # Find the line number to break inside main().
         self.line = line_number('main.c', '// Set break point at this line.')
 

Modified: lldb/trunk/test/macosx/universal/TestUniversal.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/macosx/universal/TestUniversal.py?rev=116490&r1=116489&r2=116490&view=diff
==============================================================================
--- lldb/trunk/test/macosx/universal/TestUniversal.py (original)
+++ lldb/trunk/test/macosx/universal/TestUniversal.py Thu Oct 14 12:31:24 2010
@@ -10,7 +10,8 @@
     mydir = "macosx/universal"
 
     def setUp(self):
-        super(UniversalTestCase, self).setUp()
+        # Call super's setUp().
+        TestBase.setUp(self)
         # Find the line number to break inside main().
         self.line = line_number('main.c', '// Set break point at this line.')
 

Modified: lldb/trunk/test/set_values/TestSetValues.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/set_values/TestSetValues.py?rev=116490&r1=116489&r2=116490&view=diff
==============================================================================
--- lldb/trunk/test/set_values/TestSetValues.py (original)
+++ lldb/trunk/test/set_values/TestSetValues.py Thu Oct 14 12:31:24 2010
@@ -21,7 +21,8 @@
         self.set_values()
 
     def setUp(self):
-        super(SetValuesTestCase, self).setUp()
+        # Call super's setUp().
+        TestBase.setUp(self)
         # Find the line numbers to break inside main().
         self.line1 = line_number('main.c', '// Set break point #1.')
         self.line2 = line_number('main.c', '// Set break point #2.')

Modified: lldb/trunk/test/signal/TestSendSignal.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/signal/TestSendSignal.py?rev=116490&r1=116489&r2=116490&view=diff
==============================================================================
--- lldb/trunk/test/signal/TestSendSignal.py (original)
+++ lldb/trunk/test/signal/TestSendSignal.py Thu Oct 14 12:31:24 2010
@@ -21,7 +21,8 @@
         self.send_signal()
 
     def setUp(self):
-        super(SendSignalTestCase, self).setUp()
+        # Call super's setUp().
+        TestBase.setUp(self)
         # Find the line number to break inside main().
         self.line = line_number('main.c', 'Put breakpoint here')
 

Modified: lldb/trunk/test/stl/TestSTL.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/stl/TestSTL.py?rev=116490&r1=116489&r2=116490&view=diff
==============================================================================
--- lldb/trunk/test/stl/TestSTL.py (original)
+++ lldb/trunk/test/stl/TestSTL.py Thu Oct 14 12:31:24 2010
@@ -23,7 +23,8 @@
         self.step_into_stl()
 
     def setUp(self):
-        super(STLTestCase, self).setUp()
+        # Call super's setUp().
+        TestBase.setUp(self)
         # Find the line number to break inside main().
         self.line = line_number('main.cpp', '// Set break point at this line.')
 

Modified: lldb/trunk/test/stl/TestStdCXXDisassembly.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/stl/TestStdCXXDisassembly.py?rev=116490&r1=116489&r2=116490&view=diff
==============================================================================
--- lldb/trunk/test/stl/TestStdCXXDisassembly.py (original)
+++ lldb/trunk/test/stl/TestStdCXXDisassembly.py Thu Oct 14 12:31:24 2010
@@ -12,7 +12,8 @@
     mydir = "stl"
 
     def setUp(self):
-        super(StdCXXDisassembleTestCase, self).setUp()
+        # Call super's setUp().
+        TestBase.setUp(self)
         # Find the line number to break inside main().
         self.line = line_number('main.cpp', '// Set break point at this line.')
 

Modified: lldb/trunk/test/struct_types/TestStructTypes.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/struct_types/TestStructTypes.py?rev=116490&r1=116489&r2=116490&view=diff
==============================================================================
--- lldb/trunk/test/struct_types/TestStructTypes.py (original)
+++ lldb/trunk/test/struct_types/TestStructTypes.py Thu Oct 14 12:31:24 2010
@@ -25,7 +25,8 @@
         self.struct_types()
 
     def setUp(self):
-        super(StructTypesTestCase, self).setUp()
+        # Call super's setUp().
+        TestBase.setUp(self)
         # Find the line number to break for main.c.
         self.line = line_number('main.c', '// Set break point at this line.')
         self.first_executable_line = line_number('main.c',

Modified: lldb/trunk/test/unsigned_types/TestUnsignedTypes.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/unsigned_types/TestUnsignedTypes.py?rev=116490&r1=116489&r2=116490&view=diff
==============================================================================
--- lldb/trunk/test/unsigned_types/TestUnsignedTypes.py (original)
+++ lldb/trunk/test/unsigned_types/TestUnsignedTypes.py Thu Oct 14 12:31:24 2010
@@ -24,7 +24,8 @@
         self.unsigned_types()
 
     def setUp(self):
-        super(UnsignedTypesTestCase, self).setUp()
+        # Call super's setUp().
+        TestBase.setUp(self)
         # Find the line number to break inside main().
         self.line = line_number('main.cpp', '// Set break point at this line.')
 





More information about the lldb-commits mailing list