Quiet the new exec test case down so it doesn't spew debug prints.
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@182429 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/functionalities/exec/TestExec.py b/test/functionalities/exec/TestExec.py
index 693c2f1..e9a0dca 100644
--- a/test/functionalities/exec/TestExec.py
+++ b/test/functionalities/exec/TestExec.py
@@ -10,11 +10,11 @@
import lldbutil
def execute_command (command):
- print '%% %s' % (command)
+ #print '%% %s' % (command)
(exit_status, output) = commands.getstatusoutput (command)
- if output:
- print output
- print 'status = %u' % (exit_status)
+ #if output:
+ # print output
+ #print 'status = %u' % (exit_status)
return exit_status
class ExecTestCase(TestBase):
@@ -55,10 +55,8 @@
# Create the target
target = self.dbg.CreateTarget(exe)
- print target
# Create any breakpoints we need
breakpoint = target.BreakpointCreateBySourceRegex ('Set breakpoint 1 here', lldb.SBFileSpec ("main.cpp", False))
- print breakpoint
self.assertTrue(breakpoint, VALID_BREAKPOINT)
# Launch the process
@@ -77,19 +75,12 @@
stop_reason = thread.GetStopReason()
- print 'stop_reason = %u' % (stop_reason)
-
- print thread
- for frame in thread:
- print frame
-
self.assertTrue (stop_reason == lldb.eStopReasonBreakpoint,
"Thread in process stopped in 'main' should have a stop reason of eStopReasonBreakpoint");
# Run and we should stop due to exec
process.Continue()
- print process
self.assertTrue(process.GetState() == lldb.eStateStopped,
"Process should be stopped at __dyld_start")
@@ -98,20 +89,13 @@
self.assertTrue (thread.IsValid(),
"Process stopped at exec should have a valid thread");
- print thread
- for frame in thread:
- print frame
-
stop_reason = thread.GetStopReason()
- print 'stop_reason = %u' % (stop_reason)
-
self.assertTrue (stop_reason == lldb.eStopReasonExec,
"Thread in process stopped on exec should have a stop reason of eStopReasonExec");
# Run and we should stop at breakpoint in main after exec
- process.Continue()
-
+ process.Continue()
if __name__ == '__main__':
import atexit