Skip to content

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.

test(cli): mirror Windows .exe binary path in Codex profile migration test

Ivan Dergachevabee45428780
diff --git a/tests/test_cli.c b/tests/test_cli.c
index aeacbc146..c1f9d4e82 100644
--- a/tests/test_cli.c
+++ b/tests/test_cli.c
@@ -5386,8 +5386,13 @@ TEST(cli_tiered_codex_profiles_migrate_preserve_and_uninstall) {
* install with that same path to exercise exact-content removal. */
char installed_binary[640];
char expected_command[768];
+#ifdef _WIN32
+ snprintf(installed_binary, sizeof(installed_binary), "%s/.local/bin/codebase-memory-mcp.exe",
+ tmpdir);
+#else
snprintf(installed_binary, sizeof(installed_binary), "%s/.local/bin/codebase-memory-mcp",
tmpdir);
+#endif
snprintf(expected_command, sizeof(expected_command), "command = \"%s\"", installed_binary);
char *plan = cbm_build_install_plan_json(tmpdir, installed_binary);
bool plan_ok =