test_set_output_path() should restore the original setting of target.process.output-path

after running the program.

llvm-svn: 116873
This commit is contained in:
Johnny Chen 2010-10-19 22:31:50 +00:00
parent 49249493cd
commit 030709d085
1 changed files with 3 additions and 0 deletions

View File

@ -120,6 +120,9 @@ class SettingsCommandTestCase(TestBase):
self.runCmd("run", RUN_SUCCEEDED) 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. # The 'stdout.txt' file should now exist.
self.assertTrue(os.path.isfile("stdout.txt"), self.assertTrue(os.path.isfile("stdout.txt"),
"'stdout.txt' exists due to target.process.output-path.") "'stdout.txt' exists due to target.process.output-path.")