Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.
C aiderastclaude-codecode-analysiscode-intelligencecodexcursorcypherdeveloper-toolsgemini-cligraph-visualizationkilocodeknowledge-graphmcpmcp-servermodel-context-protocolopencodesqlitetree-sitterwindsurf
test(windows): settle the lean-output guards on current main
Martin Vogelc2b68d40b544
diff --git a/tests/test_mcp.c b/tests/test_mcp.cindex 563eed0de..a6acb5875 100644--- a/tests/test_mcp.c+++ b/tests/test_mcp.c@@ -8517,12 +8517,12 @@ TEST(search_code_fails_closed_when_complete_scan_is_impossible) {ASSERT_NOT_NULL(strstr(response, "\"isError\":true"));ASSERT_NOT_NULL(strstr(response, "search failed"));(void)chmod(unreadable_path, 0644);-#endiffree(response);cbm_mcp_server_free(srv);ASSERT_EQ(th_rmtree(tmp), 0);PASS();+#endif}TEST(search_code_scoped_scan_uses_canonical_file_nodes) {diff --git a/tests/windows/test_daemon_lifecycle.py b/tests/windows/test_daemon_lifecycle.pyindex 226717fef..c16abb044 100644--- a/tests/windows/test_daemon_lifecycle.py+++ b/tests/windows/test_daemon_lifecycle.py@@ -25,9 +25,22 @@ import sysimport tempfile+def runtime_for(cache):+ """A private daemon rendezvous parent, a sibling of the cache directory."""+ head, tail = os.path.split(cache)+ runtime = "runtime" + tail[len("cache"):] if tail.startswith("cache") else tail + "-runtime"+ path = os.path.join(head, runtime)+ os.makedirs(path, exist_ok=True)+ return path++def run_cli(binary, cache, args, timeout=60, extra_env=None):env = dict(os.environ)env["CBM_CACHE_DIR"] = cache+ # Daemon coordination is account-wide and CBM_CACHE_DIR does not move the+ # rendezvous; a private CBM_RUNTIME_DIR per cache is what isolates a call+ # from every other daemon on the account (and makes a cold call cold).+ env["CBM_RUNTIME_DIR"] = runtime_for(cache)if extra_env:env.update(extra_env)return subprocess.run([binary] + args, capture_output=True, timeout=timeout, env=env)diff --git a/tests/windows/test_hook_augment.py b/tests/windows/test_hook_augment.pyindex 1614f35a7..c21de9375 100644--- a/tests/windows/test_hook_augment.py+++ b/tests/windows/test_hook_augment.py@@ -124,7 +124,9 @@ def main():return 2# Control: prove the symbol is indexed and queryable.- lp = run_cli(binary, cache, ["cli", "list_projects", "{}"])+ # The CLI answers in the lean tree form by default; this guard parses the+ # JSON projection, so it asks for it.+ lp = run_cli(binary, cache, ["cli", "list_projects", "{\"format\":\"json\"}"])projects = json.loads((lp.stdout or b"").decode("utf-8", "replace"))["projects"]name = projects[0]["name"]sg = run_cli(binary, cache, ["cli", "search_graph",