Bug 592527 - runtest.py and runxpcshelltest.py should ignore ctrl-c when using an interactive debugger. r=ted, a=only-sorta-potb

This commit is contained in:
Justin Lebar
2010-08-31 18:03:38 -07:00
parent 01d1bd8ecf
commit 56347958c9
2 changed files with 7 additions and 2 deletions

View File

@@ -423,6 +423,10 @@ class XPCShellTests(object):
self.debuggerInfo = getDebuggerInfo(self.oldcwd, debugger, debuggerArgs, debuggerInteractive)
self.profileName = profileName or "xpcshell"
# If we have an interactive debugger, disable ctrl-c.
if self.debuggerInfo and self.debuggerInfo["interactive"]:
signal.signal(signal.SIGINT, lambda signum, frame: None)
if not testdirs and not manifest:
# nothing to test!
print >>sys.stderr, "Error: No test dirs or test manifest specified!"