2011-03-08 05:28:57 +08:00
|
|
|
"""
|
|
|
|
Test SBThread APIs.
|
|
|
|
"""
|
|
|
|
|
|
|
|
import os, time
|
|
|
|
import unittest2
|
|
|
|
import lldb
|
2011-03-10 07:45:56 +08:00
|
|
|
from lldbutil import get_stopped_thread, get_caller_symbol
|
2011-03-08 05:28:57 +08:00
|
|
|
from lldbtest import *
|
|
|
|
|
|
|
|
class ThreadAPITestCase(TestBase):
|
|
|
|
|
2013-12-11 07:19:29 +08:00
|
|
|
mydir = TestBase.compute_mydir(__file__)
|
2011-03-08 05:28:57 +08:00
|
|
|
|
2015-03-30 22:12:17 +08:00
|
|
|
@skipUnlessDarwin
|
2011-03-11 09:16:03 +08:00
|
|
|
@python_api_test
|
2012-04-07 03:54:10 +08:00
|
|
|
@dsym_test
|
2011-03-11 09:16:03 +08:00
|
|
|
def test_get_process_with_dsym(self):
|
|
|
|
"""Test Python SBThread.GetProcess() API."""
|
|
|
|
self.buildDsym()
|
|
|
|
self.get_process()
|
|
|
|
|
|
|
|
@python_api_test
|
2012-04-07 03:54:10 +08:00
|
|
|
@dwarf_test
|
2011-03-11 09:16:03 +08:00
|
|
|
def test_get_process_with_dwarf(self):
|
|
|
|
"""Test Python SBThread.GetProcess() API."""
|
|
|
|
self.buildDwarf()
|
|
|
|
self.get_process()
|
|
|
|
|
2015-03-30 22:12:17 +08:00
|
|
|
@skipUnlessDarwin
|
2011-03-08 05:28:57 +08:00
|
|
|
@python_api_test
|
2012-04-07 03:54:10 +08:00
|
|
|
@dsym_test
|
2011-03-08 05:28:57 +08:00
|
|
|
def test_get_stop_description_with_dsym(self):
|
|
|
|
"""Test Python SBThread.GetStopDescription() API."""
|
|
|
|
self.buildDsym()
|
|
|
|
self.get_stop_description()
|
|
|
|
|
|
|
|
@python_api_test
|
2012-04-07 03:54:10 +08:00
|
|
|
@dwarf_test
|
2011-03-08 05:28:57 +08:00
|
|
|
def test_get_stop_description_with_dwarf(self):
|
|
|
|
"""Test Python SBThread.GetStopDescription() API."""
|
|
|
|
self.buildDwarf()
|
|
|
|
self.get_stop_description()
|
|
|
|
|
2015-03-30 22:12:17 +08:00
|
|
|
@skipUnlessDarwin
|
2011-03-11 09:16:03 +08:00
|
|
|
@python_api_test
|
2012-04-07 03:54:10 +08:00
|
|
|
@dsym_test
|
2011-03-11 09:16:03 +08:00
|
|
|
def test_run_to_address_with_dsym(self):
|
|
|
|
"""Test Python SBThread.RunToAddress() API."""
|
|
|
|
# We build a different executable than the default buildDwarf() does.
|
2011-06-24 06:11:20 +08:00
|
|
|
d = {'CXX_SOURCES': 'main2.cpp', 'EXE': self.exe_name}
|
2011-03-11 09:16:03 +08:00
|
|
|
self.buildDsym(dictionary=d)
|
|
|
|
self.setTearDownCleanup(dictionary=d)
|
2011-06-24 06:11:20 +08:00
|
|
|
self.run_to_address(self.exe_name)
|
2011-03-11 09:16:03 +08:00
|
|
|
|
|
|
|
@python_api_test
|
2012-04-07 03:54:10 +08:00
|
|
|
@dwarf_test
|
2011-03-11 09:16:03 +08:00
|
|
|
def test_run_to_address_with_dwarf(self):
|
|
|
|
"""Test Python SBThread.RunToAddress() API."""
|
|
|
|
# We build a different executable than the default buildDwarf() does.
|
2011-06-24 06:11:20 +08:00
|
|
|
d = {'CXX_SOURCES': 'main2.cpp', 'EXE': self.exe_name}
|
2011-03-11 09:16:03 +08:00
|
|
|
self.buildDwarf(dictionary=d)
|
|
|
|
self.setTearDownCleanup(dictionary=d)
|
2011-06-24 06:11:20 +08:00
|
|
|
self.run_to_address(self.exe_name)
|
2011-03-11 09:16:03 +08:00
|
|
|
|
2015-03-30 22:12:17 +08:00
|
|
|
@skipUnlessDarwin
|
2011-03-10 07:45:56 +08:00
|
|
|
@python_api_test
|
2012-04-07 03:54:10 +08:00
|
|
|
@dsym_test
|
2011-03-10 07:45:56 +08:00
|
|
|
def test_step_out_of_malloc_into_function_b_with_dsym(self):
|
|
|
|
"""Test Python SBThread.StepOut() API to step out of a malloc call where the call site is at function b()."""
|
|
|
|
# We build a different executable than the default buildDsym() does.
|
2011-06-24 06:11:20 +08:00
|
|
|
d = {'CXX_SOURCES': 'main2.cpp', 'EXE': self.exe_name}
|
2011-03-10 07:45:56 +08:00
|
|
|
self.buildDsym(dictionary=d)
|
|
|
|
self.setTearDownCleanup(dictionary=d)
|
2011-06-24 06:11:20 +08:00
|
|
|
self.step_out_of_malloc_into_function_b(self.exe_name)
|
2011-03-10 07:45:56 +08:00
|
|
|
|
2014-08-02 01:04:31 +08:00
|
|
|
@expectedFailureFreeBSD # llvm.org/pr20476
|
2015-04-01 01:44:37 +08:00
|
|
|
@expectedFailureLinux # need to 'thread step-out' twice to get out of malloc
|
2011-03-10 07:45:56 +08:00
|
|
|
@python_api_test
|
2012-04-07 03:54:10 +08:00
|
|
|
@dwarf_test
|
2011-03-10 07:45:56 +08:00
|
|
|
def test_step_out_of_malloc_into_function_b_with_dwarf(self):
|
|
|
|
"""Test Python SBThread.StepOut() API to step out of a malloc call where the call site is at function b()."""
|
|
|
|
# We build a different executable than the default buildDwarf() does.
|
2011-06-24 06:11:20 +08:00
|
|
|
d = {'CXX_SOURCES': 'main2.cpp', 'EXE': self.exe_name}
|
2011-03-10 07:45:56 +08:00
|
|
|
self.buildDwarf(dictionary=d)
|
|
|
|
self.setTearDownCleanup(dictionary=d)
|
2011-06-24 06:11:20 +08:00
|
|
|
self.step_out_of_malloc_into_function_b(self.exe_name)
|
2011-03-10 07:45:56 +08:00
|
|
|
|
2015-03-30 22:12:17 +08:00
|
|
|
@skipUnlessDarwin
|
2011-03-11 06:32:47 +08:00
|
|
|
@python_api_test
|
2012-04-07 03:54:10 +08:00
|
|
|
@dsym_test
|
2011-03-11 06:32:47 +08:00
|
|
|
def test_step_over_3_times_with_dsym(self):
|
|
|
|
"""Test Python SBThread.StepOver() API."""
|
|
|
|
# We build a different executable than the default buildDsym() does.
|
2011-06-24 06:11:20 +08:00
|
|
|
d = {'CXX_SOURCES': 'main2.cpp', 'EXE': self.exe_name}
|
2011-03-11 06:32:47 +08:00
|
|
|
self.buildDsym(dictionary=d)
|
|
|
|
self.setTearDownCleanup(dictionary=d)
|
2011-06-24 06:11:20 +08:00
|
|
|
self.step_over_3_times(self.exe_name)
|
2011-03-11 06:32:47 +08:00
|
|
|
|
|
|
|
@python_api_test
|
2012-04-07 03:54:10 +08:00
|
|
|
@dwarf_test
|
2011-03-11 06:32:47 +08:00
|
|
|
def test_step_over_3_times_with_dwarf(self):
|
|
|
|
"""Test Python SBThread.StepOver() API."""
|
|
|
|
# We build a different executable than the default buildDwarf() does.
|
2011-06-24 06:11:20 +08:00
|
|
|
d = {'CXX_SOURCES': 'main2.cpp', 'EXE': self.exe_name}
|
2011-03-11 06:32:47 +08:00
|
|
|
self.buildDwarf(dictionary=d)
|
|
|
|
self.setTearDownCleanup(dictionary=d)
|
2011-06-24 06:11:20 +08:00
|
|
|
self.step_over_3_times(self.exe_name)
|
2011-03-11 06:32:47 +08:00
|
|
|
|
2011-03-08 05:28:57 +08:00
|
|
|
def setUp(self):
|
|
|
|
# Call super's setUp().
|
|
|
|
TestBase.setUp(self)
|
2011-05-27 05:50:47 +08:00
|
|
|
# Find the line number within main.cpp to break inside main().
|
2011-06-24 06:11:20 +08:00
|
|
|
self.break_line = line_number("main.cpp", "// Set break point at this line and check variable 'my_char'.")
|
|
|
|
# Find the line numbers within main2.cpp for step_out_of_malloc_into_function_b() and step_over_3_times().
|
|
|
|
self.step_out_of_malloc = line_number("main2.cpp", "// thread step-out of malloc into function b.")
|
|
|
|
self.after_3_step_overs = line_number("main2.cpp", "// we should reach here after 3 step-over's.")
|
|
|
|
|
|
|
|
# We'll use the test method name as the exe_name for executable comppiled from main2.cpp.
|
|
|
|
self.exe_name = self.testMethodName
|
2011-03-08 05:28:57 +08:00
|
|
|
|
2011-03-11 09:16:03 +08:00
|
|
|
def get_process(self):
|
|
|
|
"""Test Python SBThread.GetProcess() API."""
|
|
|
|
exe = os.path.join(os.getcwd(), "a.out")
|
|
|
|
|
|
|
|
target = self.dbg.CreateTarget(exe)
|
2011-05-25 02:22:45 +08:00
|
|
|
self.assertTrue(target, VALID_TARGET)
|
2011-03-11 09:16:03 +08:00
|
|
|
|
2011-06-24 06:11:20 +08:00
|
|
|
breakpoint = target.BreakpointCreateByLocation("main.cpp", self.break_line)
|
2011-05-25 02:22:45 +08:00
|
|
|
self.assertTrue(breakpoint, VALID_BREAKPOINT)
|
2011-03-11 09:16:03 +08:00
|
|
|
self.runCmd("breakpoint list")
|
|
|
|
|
|
|
|
# Launch the process, and do not stop at the entry point.
|
2013-12-14 03:18:59 +08:00
|
|
|
process = target.LaunchSimple (None, None, self.get_process_working_directory())
|
2011-03-11 09:16:03 +08:00
|
|
|
|
2011-06-16 06:14:12 +08:00
|
|
|
thread = get_stopped_thread(process, lldb.eStopReasonBreakpoint)
|
2013-03-20 01:59:30 +08:00
|
|
|
self.assertTrue(thread.IsValid(), "There should be a thread stopped due to breakpoint")
|
2011-03-11 09:16:03 +08:00
|
|
|
self.runCmd("process status")
|
|
|
|
|
|
|
|
proc_of_thread = thread.GetProcess()
|
|
|
|
#print "proc_of_thread:", proc_of_thread
|
2011-06-16 06:14:12 +08:00
|
|
|
self.assertTrue(proc_of_thread.GetProcessID() == process.GetProcessID())
|
2011-03-11 09:16:03 +08:00
|
|
|
|
2011-03-08 05:28:57 +08:00
|
|
|
def get_stop_description(self):
|
2011-03-11 09:16:03 +08:00
|
|
|
"""Test Python SBThread.GetStopDescription() API."""
|
2011-03-08 05:28:57 +08:00
|
|
|
exe = os.path.join(os.getcwd(), "a.out")
|
|
|
|
|
|
|
|
target = self.dbg.CreateTarget(exe)
|
2011-05-25 02:22:45 +08:00
|
|
|
self.assertTrue(target, VALID_TARGET)
|
2011-03-08 05:28:57 +08:00
|
|
|
|
2011-06-24 06:11:20 +08:00
|
|
|
breakpoint = target.BreakpointCreateByLocation("main.cpp", self.break_line)
|
2011-05-25 02:22:45 +08:00
|
|
|
self.assertTrue(breakpoint, VALID_BREAKPOINT)
|
2011-03-08 05:28:57 +08:00
|
|
|
#self.runCmd("breakpoint list")
|
|
|
|
|
|
|
|
# Launch the process, and do not stop at the entry point.
|
2013-12-14 03:18:59 +08:00
|
|
|
process = target.LaunchSimple (None, None, self.get_process_working_directory())
|
2011-03-08 05:28:57 +08:00
|
|
|
|
2011-06-16 06:14:12 +08:00
|
|
|
thread = get_stopped_thread(process, lldb.eStopReasonBreakpoint)
|
2013-03-20 01:59:30 +08:00
|
|
|
self.assertTrue(thread.IsValid(), "There should be a thread stopped due to breakpoint")
|
2011-03-08 05:28:57 +08:00
|
|
|
#self.runCmd("process status")
|
|
|
|
|
|
|
|
# Due to the typemap magic (see lldb.swig), we pass in an (int)length to GetStopDescription
|
2011-12-20 03:38:09 +08:00
|
|
|
# and expect to get a Python string as the return object!
|
2011-03-08 05:28:57 +08:00
|
|
|
# The 100 is just an arbitrary number specifying the buffer size.
|
|
|
|
stop_description = thread.GetStopDescription(100)
|
|
|
|
self.expect(stop_description, exe=False,
|
|
|
|
startstr = 'breakpoint')
|
|
|
|
|
2011-06-24 06:11:20 +08:00
|
|
|
def step_out_of_malloc_into_function_b(self, exe_name):
|
2011-03-10 07:45:56 +08:00
|
|
|
"""Test Python SBThread.StepOut() API to step out of a malloc call where the call site is at function b()."""
|
2011-06-24 06:11:20 +08:00
|
|
|
exe = os.path.join(os.getcwd(), exe_name)
|
2011-03-10 07:45:56 +08:00
|
|
|
|
|
|
|
target = self.dbg.CreateTarget(exe)
|
2011-05-25 02:22:45 +08:00
|
|
|
self.assertTrue(target, VALID_TARGET)
|
2011-03-10 07:45:56 +08:00
|
|
|
|
|
|
|
breakpoint = target.BreakpointCreateByName('malloc')
|
2011-05-25 02:22:45 +08:00
|
|
|
self.assertTrue(breakpoint, VALID_BREAKPOINT)
|
2011-03-10 07:45:56 +08:00
|
|
|
self.runCmd("breakpoint list")
|
|
|
|
|
|
|
|
# Launch the process, and do not stop at the entry point.
|
2013-12-14 03:18:59 +08:00
|
|
|
process = target.LaunchSimple (None, None, self.get_process_working_directory())
|
2011-03-10 07:45:56 +08:00
|
|
|
|
2011-03-11 03:18:04 +08:00
|
|
|
while True:
|
2011-06-16 06:14:12 +08:00
|
|
|
thread = get_stopped_thread(process, lldb.eStopReasonBreakpoint)
|
2013-03-20 01:59:30 +08:00
|
|
|
self.assertTrue(thread.IsValid(), "There should be a thread stopped due to breakpoint")
|
2011-03-11 03:18:04 +08:00
|
|
|
caller_symbol = get_caller_symbol(thread)
|
|
|
|
#print "caller symbol of malloc:", caller_symbol
|
|
|
|
if not caller_symbol:
|
|
|
|
self.fail("Test failed: could not locate the caller symbol of malloc")
|
2014-03-08 03:02:20 +08:00
|
|
|
|
|
|
|
# Our top frame may be an inlined function in malloc() (e.g., on
|
|
|
|
# FreeBSD). Apply a simple heuristic of stepping out until we find
|
|
|
|
# a non-malloc caller
|
|
|
|
while caller_symbol.startswith("malloc"):
|
|
|
|
thread.StepOut()
|
|
|
|
self.assertTrue(thread.IsValid(), "Thread valid after stepping to outer malloc")
|
|
|
|
caller_symbol = get_caller_symbol(thread)
|
|
|
|
|
2011-03-11 03:18:04 +08:00
|
|
|
if caller_symbol == "b(int)":
|
|
|
|
break
|
2011-03-10 07:45:56 +08:00
|
|
|
#self.runCmd("thread backtrace")
|
|
|
|
#self.runCmd("process status")
|
2011-06-16 06:14:12 +08:00
|
|
|
process.Continue()
|
2011-03-10 07:45:56 +08:00
|
|
|
|
|
|
|
thread.StepOut()
|
2011-03-11 03:18:04 +08:00
|
|
|
self.runCmd("thread backtrace")
|
|
|
|
#self.runCmd("process status")
|
2011-06-24 06:11:20 +08:00
|
|
|
self.assertTrue(thread.GetFrameAtIndex(0).GetLineEntry().GetLine() == self.step_out_of_malloc,
|
2011-03-10 07:45:56 +08:00
|
|
|
"step out of malloc into function b is successful")
|
2011-03-08 05:28:57 +08:00
|
|
|
|
2011-06-24 06:11:20 +08:00
|
|
|
def step_over_3_times(self, exe_name):
|
2011-03-11 06:32:47 +08:00
|
|
|
"""Test Python SBThread.StepOver() API."""
|
2011-06-24 06:11:20 +08:00
|
|
|
exe = os.path.join(os.getcwd(), exe_name)
|
2011-03-11 06:32:47 +08:00
|
|
|
|
|
|
|
target = self.dbg.CreateTarget(exe)
|
2011-05-25 02:22:45 +08:00
|
|
|
self.assertTrue(target, VALID_TARGET)
|
2011-03-11 06:32:47 +08:00
|
|
|
|
2011-06-24 06:11:20 +08:00
|
|
|
breakpoint = target.BreakpointCreateByLocation('main2.cpp', self.step_out_of_malloc)
|
2011-05-25 02:22:45 +08:00
|
|
|
self.assertTrue(breakpoint, VALID_BREAKPOINT)
|
2011-03-11 06:32:47 +08:00
|
|
|
self.runCmd("breakpoint list")
|
|
|
|
|
|
|
|
# Launch the process, and do not stop at the entry point.
|
2013-12-14 03:18:59 +08:00
|
|
|
process = target.LaunchSimple (None, None, self.get_process_working_directory())
|
2011-03-11 06:32:47 +08:00
|
|
|
|
2011-06-16 06:14:12 +08:00
|
|
|
self.assertTrue(process, PROCESS_IS_VALID)
|
2011-03-11 06:32:47 +08:00
|
|
|
|
2011-06-24 06:11:20 +08:00
|
|
|
# Frame #0 should be on self.step_out_of_malloc.
|
2011-06-16 06:14:12 +08:00
|
|
|
self.assertTrue(process.GetState() == lldb.eStateStopped)
|
|
|
|
thread = get_stopped_thread(process, lldb.eStopReasonBreakpoint)
|
2013-03-20 01:59:30 +08:00
|
|
|
self.assertTrue(thread.IsValid(), "There should be a thread stopped due to breakpoint condition")
|
2011-03-11 06:32:47 +08:00
|
|
|
self.runCmd("thread backtrace")
|
|
|
|
frame0 = thread.GetFrameAtIndex(0)
|
|
|
|
lineEntry = frame0.GetLineEntry()
|
2011-06-24 06:11:20 +08:00
|
|
|
self.assertTrue(lineEntry.GetLine() == self.step_out_of_malloc)
|
2011-03-11 06:32:47 +08:00
|
|
|
|
|
|
|
thread.StepOver()
|
|
|
|
thread.StepOver()
|
|
|
|
thread.StepOver()
|
|
|
|
self.runCmd("thread backtrace")
|
|
|
|
|
|
|
|
# Verify that we are stopped at the correct source line number in main2.cpp.
|
|
|
|
frame0 = thread.GetFrameAtIndex(0)
|
|
|
|
lineEntry = frame0.GetLineEntry()
|
|
|
|
self.assertTrue(thread.GetStopReason() == lldb.eStopReasonPlanComplete)
|
2011-08-19 08:54:27 +08:00
|
|
|
# Expected failure with clang as the compiler.
|
|
|
|
# rdar://problem/9223880
|
2011-09-27 03:05:08 +08:00
|
|
|
#
|
|
|
|
# Which has been fixed on the lldb by compensating for inaccurate line
|
|
|
|
# table information with r140416.
|
2011-06-24 06:11:20 +08:00
|
|
|
self.assertTrue(lineEntry.GetLine() == self.after_3_step_overs)
|
2011-03-11 06:32:47 +08:00
|
|
|
|
2011-06-24 05:22:01 +08:00
|
|
|
def run_to_address(self, exe_name):
|
2011-03-11 08:00:15 +08:00
|
|
|
"""Test Python SBThread.RunToAddress() API."""
|
2011-06-24 05:22:01 +08:00
|
|
|
exe = os.path.join(os.getcwd(), exe_name)
|
2011-03-11 08:00:15 +08:00
|
|
|
|
|
|
|
target = self.dbg.CreateTarget(exe)
|
2011-05-25 02:22:45 +08:00
|
|
|
self.assertTrue(target, VALID_TARGET)
|
2011-03-11 08:00:15 +08:00
|
|
|
|
2011-06-24 06:11:20 +08:00
|
|
|
breakpoint = target.BreakpointCreateByLocation('main2.cpp', self.step_out_of_malloc)
|
2011-05-25 02:22:45 +08:00
|
|
|
self.assertTrue(breakpoint, VALID_BREAKPOINT)
|
2011-03-11 08:00:15 +08:00
|
|
|
self.runCmd("breakpoint list")
|
|
|
|
|
|
|
|
# Launch the process, and do not stop at the entry point.
|
2013-12-14 03:18:59 +08:00
|
|
|
process = target.LaunchSimple (None, None, self.get_process_working_directory())
|
2011-03-11 08:00:15 +08:00
|
|
|
|
2011-06-16 06:14:12 +08:00
|
|
|
self.assertTrue(process, PROCESS_IS_VALID)
|
2011-03-11 08:00:15 +08:00
|
|
|
|
2011-06-24 06:11:20 +08:00
|
|
|
# Frame #0 should be on self.step_out_of_malloc.
|
2011-06-16 06:14:12 +08:00
|
|
|
self.assertTrue(process.GetState() == lldb.eStateStopped)
|
|
|
|
thread = get_stopped_thread(process, lldb.eStopReasonBreakpoint)
|
2013-03-20 01:59:30 +08:00
|
|
|
self.assertTrue(thread.IsValid(), "There should be a thread stopped due to breakpoint condition")
|
2011-03-11 08:00:15 +08:00
|
|
|
self.runCmd("thread backtrace")
|
|
|
|
frame0 = thread.GetFrameAtIndex(0)
|
|
|
|
lineEntry = frame0.GetLineEntry()
|
2011-06-24 06:11:20 +08:00
|
|
|
self.assertTrue(lineEntry.GetLine() == self.step_out_of_malloc)
|
2011-03-11 08:00:15 +08:00
|
|
|
|
|
|
|
# Get the start/end addresses for this line entry.
|
|
|
|
start_addr = lineEntry.GetStartAddress().GetLoadAddress(target)
|
|
|
|
end_addr = lineEntry.GetEndAddress().GetLoadAddress(target)
|
2011-04-20 04:11:58 +08:00
|
|
|
if self.TraceOn():
|
|
|
|
print "start addr:", hex(start_addr)
|
|
|
|
print "end addr:", hex(end_addr)
|
2011-03-11 08:00:15 +08:00
|
|
|
|
|
|
|
# Disable the breakpoint.
|
|
|
|
self.assertTrue(target.DisableAllBreakpoints())
|
|
|
|
self.runCmd("breakpoint list")
|
|
|
|
|
|
|
|
thread.StepOver()
|
|
|
|
thread.StepOver()
|
|
|
|
thread.StepOver()
|
|
|
|
self.runCmd("thread backtrace")
|
|
|
|
|
|
|
|
# Now ask SBThread to run to the address 'start_addr' we got earlier, which
|
2011-06-24 06:11:20 +08:00
|
|
|
# corresponds to self.step_out_of_malloc line entry's start address.
|
2011-03-11 08:00:15 +08:00
|
|
|
thread.RunToAddress(start_addr)
|
|
|
|
self.runCmd("process status")
|
|
|
|
#self.runCmd("thread backtrace")
|
|
|
|
|
2011-03-11 06:32:47 +08:00
|
|
|
|
2011-03-08 05:28:57 +08:00
|
|
|
if __name__ == '__main__':
|
|
|
|
import atexit
|
|
|
|
lldb.SBDebugger.Initialize()
|
|
|
|
atexit.register(lambda: lldb.SBDebugger.Terminate())
|
|
|
|
unittest2.main()
|