Author: Ebuka Ezike
Date: 2025-03-21T14:02:52Z
New Revision: 5286511adc94529c2d0ee9ea37c121ff7eaea223

URL: 
https://github.com/llvm/llvm-project/commit/5286511adc94529c2d0ee9ea37c121ff7eaea223
DIFF: 
https://github.com/llvm/llvm-project/commit/5286511adc94529c2d0ee9ea37c121ff7eaea223.diff

LOG: [lldb][NFC] use platform independent path separator in testSettings.py. 
(#132392)

The build bot was failing when running remote test from windows to
linux.

>From  #131683

---------

Signed-off-by: Ebuka Ezike <yerimy...@gmail.com>
Co-authored-by: Pavel Labath <pa...@labath.sk>

Added: 
    

Modified: 
    lldb/test/API/commands/settings/TestSettings.py

Removed: 
    


################################################################################
diff  --git a/lldb/test/API/commands/settings/TestSettings.py 
b/lldb/test/API/commands/settings/TestSettings.py
index 6b89ff76a2900..2a7c852fc916d 100644
--- a/lldb/test/API/commands/settings/TestSettings.py
+++ b/lldb/test/API/commands/settings/TestSettings.py
@@ -1018,8 +1018,9 @@ def test_settings_api(self):
 
         # Test OptionValueFileSpec and OptionValueFileSpecList
         setting_path = "target.debug-file-search-paths"
-        setting_value = ["/tmp" "/tmp2"]
-        self.runCmd("settings set %s %s" % (setting_path, " 
".join(setting_value)))
+        path1 = os.path.join(self.getSourceDir(), "tmp")
+        path2 = os.path.join(self.getSourceDir(), "tmp2")
+        self.runCmd("settings set %s '%s' '%s'" % (setting_path, path1, path2))
         settings_json = self.get_setting_json(setting_path)
         self.assertEqual(settings_json, setting_value)
 


        
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to