Skip to content

Commit 710d95d

Browse files
authored
[lldb] Fixed the test TestSettings when run with a remote target (llvm#91915)
The setting `platform.module-cache-directory` is a local path on the host. It cannot be set to a working directory from the remote target. This test failed in case of Windows host and Linux target because of the incompatible path. Use the local build dir instead.
1 parent bc17361 commit 710d95d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -953,7 +953,7 @@ def test_settings_api(self):
953953

954954
# Test OptionValueFileSpec
955955
self.verify_setting_value_json(
956-
"platform.module-cache-directory", self.get_process_working_directory()
956+
"platform.module-cache-directory", self.getBuildDir()
957957
)
958958

959959
# Test OptionValueArray

0 commit comments

Comments
 (0)