From 030709d08541a93c7d341b341dca9b212bc5d6f8 Mon Sep 17 00:00:00 2001 From: Johnny Chen Date: Tue, 19 Oct 2010 22:31:50 +0000 Subject: [PATCH] test_set_output_path() should restore the original setting of target.process.output-path after running the program. llvm-svn: 116873 --- lldb/test/settings/TestSettings.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lldb/test/settings/TestSettings.py b/lldb/test/settings/TestSettings.py index e819979631ec..cb744f6f7636 100644 --- a/lldb/test/settings/TestSettings.py +++ b/lldb/test/settings/TestSettings.py @@ -120,6 +120,9 @@ class SettingsCommandTestCase(TestBase): self.runCmd("run", RUN_SUCCEEDED) + # Restore the original setting now that the program has been run. + self.runCmd("settings set -r target.process.output-path") + # The 'stdout.txt' file should now exist. self.assertTrue(os.path.isfile("stdout.txt"), "'stdout.txt' exists due to target.process.output-path.")