[Lldb-commits] [lldb] [lldb][test] Use a fake dsymForUUID in tests (PR #201547)

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Wed Jul 1 10:52:01 PDT 2026


================
@@ -221,6 +221,16 @@ def delete_module_cache(path):
 if is_configured("llvm_tools_dir"):
     dotest_cmd += ["--env", "LLVM_TOOLS_DIR=" + config.llvm_tools_dir]
 
+# Prevent tests from accidentally invoking the real dsymForUUID, which can
+# make slow network requests. Tests that need a working dsymForUUID mock
+# should override this with their own script.
+if platform.system() == "Darwin":
+    dotest_cmd += [
+        "--env",
+        "LLDB_APPLE_DSYMFORUUID_EXECUTABLE="
+        + os.path.join(config.lldb_src_root, "test", "Utils", "fake-dsymForUUID.sh"),
+    ]
+
----------------
JDevlieghere wrote:

I'm pretty sure I copied this form llvm or clang at the time. I still see similar files there, but they have more. If we can move shared logic there that would be great. If it serves no purpose then I'm fine with removing it too.

https://github.com/llvm/llvm-project/pull/201547


More information about the lldb-commits mailing list