Install the SIGINT (control-c) handler before invoking the text test runner.

llvm-svn: 110595
This commit is contained in:
Johnny Chen 2010-08-09 20:40:52 +00:00
parent 788e84d70e
commit f4804c696d
1 changed files with 4 additions and 0 deletions

View File

@ -180,6 +180,10 @@ if ("LLDB_LOG" in os.environ):
if not res.Succeeded():
raise Exception('log enable failed (check your LLDB_LOG env variable...')
# Install the control-c handler.
unittest2.signals.installHandler()
# Invoke the default TextTestRunner to run the test suite.
unittest2.TextTestRunner(verbosity=verbose).run(suite)
# Add some delay before calling SBDebugger.Terminate().