[Lldb-commits] [lldb] [lldb][NFC] use platform independent path separator in testSettings.py. (PR #132392)
Ebuka Ezike via lldb-commits
lldb-commits at lists.llvm.org
Fri Mar 21 06:06:07 PDT 2025
https://github.com/da-viper created https://github.com/llvm/llvm-project/pull/132392
The build bot was failing when running remote test from windows to linux.
>From 493a5798524361442ab19be4b0a8077910984ffc Mon Sep 17 00:00:00 2001
From: Ebuka Ezike <yerimyah1 at gmail.com>
Date: Fri, 21 Mar 2025 13:04:29 +0000
Subject: [PATCH] [lldb][NFC] use platform independent path separator.
The build bot was failing when connecting from windows to linux.
Signed-off-by: Ebuka Ezike <yerimyah1 at gmail.com>
---
lldb/test/API/commands/settings/TestSettings.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lldb/test/API/commands/settings/TestSettings.py b/lldb/test/API/commands/settings/TestSettings.py
index 6b89ff76a2900..045b93dab2e2a 100644
--- a/lldb/test/API/commands/settings/TestSettings.py
+++ b/lldb/test/API/commands/settings/TestSettings.py
@@ -1018,7 +1018,9 @@ def test_settings_api(self):
# Test OptionValueFileSpec and OptionValueFileSpecList
setting_path = "target.debug-file-search-paths"
- setting_value = ["/tmp" "/tmp2"]
+ path1 = os.path.join(self.getSourceDir(), "tmp")
+ path2 = os.path.join(self.getSourceDir(), "tmp2")
+ setting_value = [path1, path2]
self.runCmd("settings set %s %s" % (setting_path, " ".join(setting_value)))
settings_json = self.get_setting_json(setting_path)
self.assertEqual(settings_json, setting_value)
More information about the lldb-commits
mailing list