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

Med Ismail Bennani via lldb-commits lldb-commits at lists.llvm.org
Thu Jun 4 09:11:17 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"),
+    ]
+
----------------
medismailben wrote:

Why not set this in `lldb/test/lit.cfg.py` so we don't have to duplicate it for API and Shell tests ?

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


More information about the lldb-commits mailing list