[Lldb-commits] [lldb] [lldb] Fixed the test TestSettings (PR #91915)
Dmitry Vasilyev via lldb-commits
lldb-commits at lists.llvm.org
Sun May 12 23:04:19 PDT 2024
https://github.com/slydiman created https://github.com/llvm/llvm-project/pull/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. Use the local build dir instead.
>From d16f016a3e5880b151d769ff7a8095c487a409d7 Mon Sep 17 00:00:00 2001
From: Dmitry Vasilyev <dvassiliev at accesssoftek.com>
Date: Mon, 13 May 2024 09:48:19 +0400
Subject: [PATCH] [lldb] Fixed the test TestSettings
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. Use the local build dir instead.
---
lldb/test/API/commands/settings/TestSettings.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lldb/test/API/commands/settings/TestSettings.py b/lldb/test/API/commands/settings/TestSettings.py
index 104a9f09788c3..385acceb7a8b5 100644
--- a/lldb/test/API/commands/settings/TestSettings.py
+++ b/lldb/test/API/commands/settings/TestSettings.py
@@ -953,7 +953,7 @@ def test_settings_api(self):
# Test OptionValueFileSpec
self.verify_setting_value_json(
- "platform.module-cache-directory", self.get_process_working_directory()
+ "platform.module-cache-directory", self.getBuildDir()
)
# Test OptionValueArray
More information about the lldb-commits
mailing list