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
Fix Windows build: guard symlink() call with #ifndef _WIN32
Martin Vogel8349f819de18
diff --git a/tests/test_discover.c b/tests/test_discover.cindex 61e06db8c..ec0dda0b1 100644--- a/tests/test_discover.c+++ b/tests/test_discover.c@@ -466,9 +466,10 @@ TEST(discover_cbmignore_stacks) {TEST(discover_symlink_skipped) {#ifdef _WIN32- /* Symlinks require elevated privileges on Windows — skip */+ /* Symlinks require elevated privileges on Windows — skip.+ * Guard the entire body: symlink() doesn't exist on Windows. */SKIP("symlinks need admin on Windows");-#endif+#elsechar *base = th_mktempdir("cbm_disc_sym");ASSERT(base != NULL);@@ -499,6 +500,7 @@ TEST(discover_symlink_skipped) {cbm_discover_free(files, count);th_cleanup(base);PASS();+#endif}TEST(discover_new_ignore_patterns) {