Fix SettingsCommandTestCase.test_set_error_output_path
target.error-path (and output-path) were getting resolved on the
local file system, which doesn't make any sense for remote targets
So this patch prevents file paths from being resolved on the host
system.
llvm-svn: 229763
diff --git a/lldb/test/settings/TestSettings.py b/lldb/test/settings/TestSettings.py
index 2cb57da..5043fa8 100644
--- a/lldb/test/settings/TestSettings.py
+++ b/lldb/test/settings/TestSettings.py
@@ -290,14 +290,19 @@
self.expect("settings show target.error-path",
SETTING_MSG("target.error-path"),
- substrs = ['target.error-path (file) = ', 'stderr.txt"'])
+ substrs = ['target.error-path (file) = "stderr.txt"'])
self.expect("settings show target.output-path",
SETTING_MSG("target.output-path"),
- substrs = ['target.output-path (file) = ', 'stdout.txt"'])
+ substrs = ['target.output-path (file) = "stdout.txt"'])
self.runCmd("run", RUN_SUCCEEDED)
+ if lldb.remote_platform:
+ self.runCmd('platform get-file "stderr.txt" "stderr.txt"')
+ self.runCmd('platform get-file "stdout.txt" "stdout.txt"')
+
+
# The 'stderr.txt' file should now exist.
self.assertTrue(os.path.isfile("stderr.txt"),
"'stderr.txt' exists due to target.error-path.")