forked from OSchip/llvm-project
parent
ea80ba8b97
commit
71aaf75e3d
|
@ -57,6 +57,15 @@ class AbbreviationsTestCase(TestBase):
|
|||
self.expect("set sh prompt",
|
||||
startstr = 'prompt (string) = "(lldb) "')
|
||||
|
||||
# We don't want to display the stdout if not in TraceOn() mode.
|
||||
if not self.TraceOn():
|
||||
old_stdout = sys.stdout
|
||||
session = StringIO.StringIO()
|
||||
sys.stdout = session
|
||||
def restore_stdout():
|
||||
sys.stdout = old_stdout
|
||||
self.addTearDownHook(restore_stdout)
|
||||
|
||||
self.runCmd (r'''sc print "\n\n\tHello!\n"''')
|
||||
|
||||
|
||||
|
|
|
@ -97,8 +97,9 @@ class IterateFrameAndDisassembleTestCase(TestBase):
|
|||
frame = thread.GetFrameAtIndex(i)
|
||||
function = frame.GetFunction()
|
||||
# Print the function header.
|
||||
print
|
||||
print function
|
||||
if self.traceOn():
|
||||
print
|
||||
print function
|
||||
if function.IsValid():
|
||||
# Get all instructions for this function and print them out.
|
||||
insts = function.GetInstructions(target)
|
||||
|
|
|
@ -181,8 +181,8 @@ where options:
|
|||
-s : specify the name of the dir created to store the session files of tests
|
||||
with errored or failed status; if not specified, the test driver uses the
|
||||
timestamp as the session dir name
|
||||
-t : trace lldb command execution and result
|
||||
-v : do verbose mode of unittest framework
|
||||
-t : turn on tracing of lldb command and other detailed test executions
|
||||
-v : do verbose mode of unittest framework (print out each test case invocation)
|
||||
-w : insert some wait time (currently 0.5 sec) between consecutive test cases
|
||||
-# : Repeat the test suite for a specified number of times
|
||||
|
||||
|
|
Loading…
Reference in New Issue