forked from OSchip/llvm-project
Clear auto-confirm setting on teardown for tests that use it
llvm-svn: 168382
This commit is contained in:
parent
ba50ce4825
commit
1b8b392889
|
@ -40,6 +40,7 @@ class BreakpointCommandTestCase(TestBase):
|
|||
self.line = line_number('main.c', '// Set break point at this line.')
|
||||
# disable "There is a running process, kill it and restart?" prompt
|
||||
self.runCmd("settings set auto-confirm true")
|
||||
self.addTearDownHook(lambda: self.runCmd("settings clear auto-confirm"))
|
||||
|
||||
def breakpoint_command_sequence(self):
|
||||
"""Test a sequence of breakpoint command add, list, and delete."""
|
||||
|
|
|
@ -17,6 +17,7 @@ class FloatTypesTestCase(AbstractBase.GenericTester):
|
|||
AbstractBase.GenericTester.setUp(self)
|
||||
# disable "There is a running process, kill it and restart?" prompt
|
||||
self.runCmd("settings set auto-confirm true")
|
||||
self.addTearDownHook(lambda: self.runCmd("settings clear auto-confirm"))
|
||||
|
||||
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
|
||||
@dsym_test
|
||||
|
|
|
@ -20,6 +20,7 @@ class FloatTypesExprTestCase(AbstractBase.GenericTester):
|
|||
AbstractBase.GenericTester.setUp(self)
|
||||
# disable "There is a running process, kill it and restart?" prompt
|
||||
self.runCmd("settings set auto-confirm true")
|
||||
self.addTearDownHook(lambda: self.runCmd("settings clear auto-confirm"))
|
||||
|
||||
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
|
||||
@dsym_test
|
||||
|
|
|
@ -17,6 +17,7 @@ class IntegerTypesTestCase(AbstractBase.GenericTester):
|
|||
AbstractBase.GenericTester.setUp(self)
|
||||
# disable "There is a running process, kill it and restart?" prompt
|
||||
self.runCmd("settings set auto-confirm true")
|
||||
self.addTearDownHook(lambda: self.runCmd("settings clear auto-confirm"))
|
||||
|
||||
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
|
||||
@dsym_test
|
||||
|
|
|
@ -17,6 +17,7 @@ class IntegerTypesExprTestCase(AbstractBase.GenericTester):
|
|||
AbstractBase.GenericTester.setUp(self)
|
||||
# disable "There is a running process, kill it and restart?" prompt
|
||||
self.runCmd("settings set auto-confirm true")
|
||||
self.addTearDownHook(lambda: self.runCmd("settings clear auto-confirm"))
|
||||
|
||||
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
|
||||
@dsym_test
|
||||
|
|
Loading…
Reference in New Issue