[Lldb-commits] [lldb] r121448 - in /lldb/trunk/test: array_types/TestArrayTypes.py bitfields/TestBitfields.py breakpoint_conditions/TestBreakpointConditions.py class_static/TestStaticVariables.py class_types/TestClassTypes.py class_types/TestClassTypesDisassembly.py conditional_break/TestConditionalBreak.py foundation/TestSymbolTable.py hello_world/TestHelloWorld.py
Johnny Chen
johnny.chen at apple.com
Thu Dec 9 17:21:27 PST 2010
Author: johnny
Date: Thu Dec 9 19:21:27 2010
New Revision: 121448
URL: http://llvm.org/viewvc/llvm-project?rev=121448&view=rev
Log:
Add @python_api_test decorator to the remaining Test*.py files.
Modified:
lldb/trunk/test/array_types/TestArrayTypes.py
lldb/trunk/test/bitfields/TestBitfields.py
lldb/trunk/test/breakpoint_conditions/TestBreakpointConditions.py
lldb/trunk/test/class_static/TestStaticVariables.py
lldb/trunk/test/class_types/TestClassTypes.py
lldb/trunk/test/class_types/TestClassTypesDisassembly.py
lldb/trunk/test/conditional_break/TestConditionalBreak.py
lldb/trunk/test/foundation/TestSymbolTable.py
lldb/trunk/test/hello_world/TestHelloWorld.py
Modified: lldb/trunk/test/array_types/TestArrayTypes.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/array_types/TestArrayTypes.py?rev=121448&r1=121447&r2=121448&view=diff
==============================================================================
--- lldb/trunk/test/array_types/TestArrayTypes.py (original)
+++ lldb/trunk/test/array_types/TestArrayTypes.py Thu Dec 9 19:21:27 2010
@@ -16,6 +16,7 @@
self.array_types()
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
+ @python_api_test
def test_with_dsym_and_python_api(self):
"""Use Python APIs to inspect variables with array types."""
self.buildDsym()
@@ -26,6 +27,7 @@
self.buildDwarf()
self.array_types()
+ @python_api_test
def test_with_dwarf_and_python_api(self):
"""Use Python APIs to inspect variables with array types."""
self.buildDwarf()
Modified: lldb/trunk/test/bitfields/TestBitfields.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/bitfields/TestBitfields.py?rev=121448&r1=121447&r2=121448&view=diff
==============================================================================
--- lldb/trunk/test/bitfields/TestBitfields.py (original)
+++ lldb/trunk/test/bitfields/TestBitfields.py Thu Dec 9 19:21:27 2010
@@ -16,6 +16,7 @@
self.bitfields_variable()
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
+ @python_api_test
def test_with_dsym_and_python_api(self):
"""Use Python APIs to inspect a bitfields variable."""
self.buildDsym()
@@ -26,6 +27,7 @@
self.buildDwarf()
self.bitfields_variable()
+ @python_api_test
def test_with_dwarf_and_python_api(self):
"""Use Python APIs to inspect a bitfields variable."""
self.buildDwarf()
@@ -92,11 +94,7 @@
breakpoint = target.BreakpointCreateByLocation("main.c", self.line)
self.assertTrue(breakpoint.IsValid(), VALID_BREAKPOINT)
- self.runCmd("run", RUN_SUCCEEDED, setCookie=False)
- # This does not work, and results in the process stopped at dyld_start?
- #process = target.LaunchProcess([], [], os.ctermid(), False)
-
- self.process = target.GetProcess()
+ self.process = target.LaunchProcess([], [], os.ctermid(), False, 0)
self.assertTrue(self.process.IsValid(), PROCESS_IS_VALID)
# The stop reason of the thread should be breakpoint.
Modified: lldb/trunk/test/breakpoint_conditions/TestBreakpointConditions.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/breakpoint_conditions/TestBreakpointConditions.py?rev=121448&r1=121447&r2=121448&view=diff
==============================================================================
--- lldb/trunk/test/breakpoint_conditions/TestBreakpointConditions.py (original)
+++ lldb/trunk/test/breakpoint_conditions/TestBreakpointConditions.py Thu Dec 9 19:21:27 2010
@@ -19,6 +19,7 @@
self.breakpoint_conditions()
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
+ @python_api_test
def test_with_dsym_and_python_api(self):
"""Use Python APIs to set breakpoint conditions."""
self.buildDsym()
@@ -29,6 +30,7 @@
self.buildDwarf()
self.breakpoint_conditions()
+ @python_api_test
def test_with_dwarf_and_python_api(self):
"""Use Python APIs to set breakpoint conditions."""
self.buildDwarf()
Modified: lldb/trunk/test/class_static/TestStaticVariables.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/class_static/TestStaticVariables.py?rev=121448&r1=121447&r2=121448&view=diff
==============================================================================
--- lldb/trunk/test/class_static/TestStaticVariables.py (original)
+++ lldb/trunk/test/class_static/TestStaticVariables.py Thu Dec 9 19:21:27 2010
@@ -23,11 +23,13 @@
self.static_variable_commands()
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
+ @python_api_test
def test_with_dsym_and_python_api(self):
"""Test Python APIs on file and class static variables."""
self.buildDsym()
self.static_variable_python()
+ @python_api_test
def test_with_dwarf_and_python_api(self):
"""Test Python APIs on file and class static variables."""
self.buildDwarf()
Modified: lldb/trunk/test/class_types/TestClassTypes.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/class_types/TestClassTypes.py?rev=121448&r1=121447&r2=121448&view=diff
==============================================================================
--- lldb/trunk/test/class_types/TestClassTypes.py (original)
+++ lldb/trunk/test/class_types/TestClassTypes.py Thu Dec 9 19:21:27 2010
@@ -17,6 +17,7 @@
self.class_types()
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
+ @python_api_test
def test_with_dsym_and_python_api(self):
"""Use Python APIs to create a breakpoint by (filespec, line)."""
self.buildDsym()
@@ -30,6 +31,7 @@
self.buildDwarf()
self.class_types()
+ @python_api_test
def test_with_dwarf_and_python_api(self):
"""Use Python APIs to create a breakpoint by (filespec, line)."""
self.buildDwarf()
Modified: lldb/trunk/test/class_types/TestClassTypesDisassembly.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/class_types/TestClassTypesDisassembly.py?rev=121448&r1=121447&r2=121448&view=diff
==============================================================================
--- lldb/trunk/test/class_types/TestClassTypesDisassembly.py (original)
+++ lldb/trunk/test/class_types/TestClassTypesDisassembly.py Thu Dec 9 19:21:27 2010
@@ -23,15 +23,17 @@
self.disassemble_call_stack()
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
+ @python_api_test
def test_with_dsym_and_python_api(self):
"""Disassemble each call frame when stopped on C's constructor."""
self.buildDsym()
- self.disassemble_call_stack_api()
+ self.disassemble_call_stack_python()
+ @python_api_test
def test_with_dwarf_and_python_api(self):
"""Disassemble each call frame when stopped on C's constructor."""
self.buildDwarf()
- self.disassemble_call_stack_api()
+ self.disassemble_call_stack_python()
def setUp(self):
# Call super's setUp().
@@ -81,7 +83,7 @@
#print "function:", function
self.runCmd("disassemble -n '%s'" % function)
- def disassemble_call_stack_api(self):
+ def disassemble_call_stack_python(self):
"""Disassemble each call frame when stopped on C's constructor."""
self.breakOnCtor()
Modified: lldb/trunk/test/conditional_break/TestConditionalBreak.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/conditional_break/TestConditionalBreak.py?rev=121448&r1=121447&r2=121448&view=diff
==============================================================================
--- lldb/trunk/test/conditional_break/TestConditionalBreak.py (original)
+++ lldb/trunk/test/conditional_break/TestConditionalBreak.py Thu Dec 9 19:21:27 2010
@@ -18,11 +18,13 @@
mydir = "conditional_break"
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
+ @python_api_test
def test_with_dsym_python(self):
"""Exercise some thread and frame APIs to break if c() is called by a()."""
self.buildDsym()
self.do_conditional_break()
+ @python_api_test
def test_with_dwarf_python(self):
"""Exercise some thread and frame APIs to break if c() is called by a()."""
self.buildDwarf()
Modified: lldb/trunk/test/foundation/TestSymbolTable.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/foundation/TestSymbolTable.py?rev=121448&r1=121447&r2=121448&view=diff
==============================================================================
--- lldb/trunk/test/foundation/TestSymbolTable.py (original)
+++ lldb/trunk/test/foundation/TestSymbolTable.py Thu Dec 9 19:21:27 2010
@@ -24,11 +24,13 @@
'main'
]
+ @python_api_test
def test_with_dsym_and_python_api(self):
"""Test symbol table access with Python APIs."""
self.buildDsym()
self.symtab_access_python()
+ @python_api_test
def test_with_dwarf_and_python_api(self):
"""Test symbol table access with Python APIs."""
self.buildDwarf()
Modified: lldb/trunk/test/hello_world/TestHelloWorld.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/hello_world/TestHelloWorld.py?rev=121448&r1=121447&r2=121448&view=diff
==============================================================================
--- lldb/trunk/test/hello_world/TestHelloWorld.py (original)
+++ lldb/trunk/test/hello_world/TestHelloWorld.py Thu Dec 9 19:21:27 2010
@@ -18,6 +18,7 @@
self.buildDsym()
self.hello_world_python(useLaunchAPI = False)
+ @python_api_test
def test_with_dwarf_and_process_launch_api(self):
"""Create target, breakpoint, launch a process, and then kill it.
More information about the lldb-commits
mailing list