summaryrefslogtreecommitdiffstats
path: root/lldb/test/settings/TestSettings.py
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/test/settings/TestSettings.py')
-rw-r--r--lldb/test/settings/TestSettings.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/lldb/test/settings/TestSettings.py b/lldb/test/settings/TestSettings.py
index f18c0bc9d6e..e7dbdce2fae 100644
--- a/lldb/test/settings/TestSettings.py
+++ b/lldb/test/settings/TestSettings.py
@@ -11,6 +11,10 @@ class SettingsCommandTestCase(TestBase):
mydir = "settings"
+ @classmethod
+ def classCleanup(cls):
+ system(["/bin/sh", "-c", "rm output.txt"])
+
def test_set_prompt(self):
"""Test that 'set prompt' actually changes the prompt."""
@@ -62,7 +66,7 @@ class SettingsCommandTestCase(TestBase):
self.runCmd("run", RUN_SUCCEEDED)
# Read the output file produced by running the program.
- output = open('/tmp/output.txt', 'r').read()
+ output = open('output.txt', 'r').read()
self.assertTrue(output.startswith("argv[1] matches") and
output.find("argv[2] matches") > 0 and
OpenPOWER on IntegriCloud