diff options
author | Daniel Malea <daniel.malea@intel.com> | 2012-11-20 19:46:54 +0000 |
---|---|---|
committer | Daniel Malea <daniel.malea@intel.com> | 2012-11-20 19:46:54 +0000 |
commit | 1b8b39288965c1b77e94b1616fd540dc529bcb23 (patch) | |
tree | 04d6fc27974d748e19cad1408569342a61c9a5f7 /lldb/test | |
parent | ba50ce48253f5ab7227d44f5702ae69b5eb8670a (diff) | |
download | bcm5719-llvm-1b8b39288965c1b77e94b1616fd540dc529bcb23.tar.gz bcm5719-llvm-1b8b39288965c1b77e94b1616fd540dc529bcb23.zip |
Clear auto-confirm setting on teardown for tests that use it
llvm-svn: 168382
Diffstat (limited to 'lldb/test')
-rw-r--r-- | lldb/test/functionalities/breakpoint/breakpoint_command/TestBreakpointCommand.py | 1 | ||||
-rw-r--r-- | lldb/test/types/TestFloatTypes.py | 1 | ||||
-rw-r--r-- | lldb/test/types/TestFloatTypesExpr.py | 1 | ||||
-rw-r--r-- | lldb/test/types/TestIntegerTypes.py | 1 | ||||
-rw-r--r-- | lldb/test/types/TestIntegerTypesExpr.py | 1 |
5 files changed, 5 insertions, 0 deletions
diff --git a/lldb/test/functionalities/breakpoint/breakpoint_command/TestBreakpointCommand.py b/lldb/test/functionalities/breakpoint/breakpoint_command/TestBreakpointCommand.py index 2ecdfc3ca00..372ee6b99ab 100644 --- a/lldb/test/functionalities/breakpoint/breakpoint_command/TestBreakpointCommand.py +++ b/lldb/test/functionalities/breakpoint/breakpoint_command/TestBreakpointCommand.py @@ -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.""" diff --git a/lldb/test/types/TestFloatTypes.py b/lldb/test/types/TestFloatTypes.py index 69740c389b5..6bbc22807a9 100644 --- a/lldb/test/types/TestFloatTypes.py +++ b/lldb/test/types/TestFloatTypes.py @@ -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 diff --git a/lldb/test/types/TestFloatTypesExpr.py b/lldb/test/types/TestFloatTypesExpr.py index 8cbf5f66340..0402415e5c6 100644 --- a/lldb/test/types/TestFloatTypesExpr.py +++ b/lldb/test/types/TestFloatTypesExpr.py @@ -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 diff --git a/lldb/test/types/TestIntegerTypes.py b/lldb/test/types/TestIntegerTypes.py index 453f8bd3682..d8ba5a3fbf3 100644 --- a/lldb/test/types/TestIntegerTypes.py +++ b/lldb/test/types/TestIntegerTypes.py @@ -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 diff --git a/lldb/test/types/TestIntegerTypesExpr.py b/lldb/test/types/TestIntegerTypesExpr.py index 03daa908335..1d7b3183389 100644 --- a/lldb/test/types/TestIntegerTypesExpr.py +++ b/lldb/test/types/TestIntegerTypesExpr.py @@ -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 |