Skip to content

fix(tests): the qwen36 fill-wait test needs compat.h to build on Windows - #1459

Merged
JustVugg merged 1 commit into
devfrom
hotfix-setenv
Sep 13, 2026
Merged

JustVugg merged 1 commit into
devfrom
hotfix-setenv

Conversation

@JustVugg

Copy link
Copy Markdown
Owner

dev is red on Windows UCRT64 / make check since #1390 landed:

tests/test_qwen36_tier_fill_wait.c:42:5: error: implicit declaration of function 'setenv'; did you mean 'getenv'?

MinGW has no setenv. Tests that include an engine .c inherit compat.h through it; this one includes qwen36_tier.c, which does not. Linux never noticed because glibc has setenv, and modern GCC makes an implicit declaration an error rather than a warning, so the Windows leg is where it surfaced. Same shape as #1440.

Reproduced locally against mingw-w64 with the Makefile's own Windows flags plus -Werror=implicit-function-declaration, fixed, then every gated test was cross-compiled the same way: this file is the only one affected. The three that still fail that sweep (test_uring, test_deepseek_v4, test_v4_ownership) are in TEST_EXCLUDE and are not built on the Windows leg.

compat.h also joins the rule's prerequisites, so editing the shim relinks the test.

dev went red on `Windows UCRT64` / `make check` right after #1390 landed:

    tests/test_qwen36_tier_fill_wait.c:42:5: error: implicit declaration of
    function 'setenv'; did you mean 'getenv'?

MinGW has no setenv. The tests that include an engine .c inherit compat.h
through it, but this one includes qwen36_tier.c, which does not pull it in,
so the declaration was never there. Linux never noticed because glibc has
setenv, and modern GCC turns an implicit declaration into an error rather
than a warning, so the Windows leg is where it surfaced. Same shape as
#1440, which added the include to the six tests that already had it.

Reproduced and fixed against mingw-w64 with the Makefile's own Windows flags
plus -Werror=implicit-function-declaration, then every other gated test was
cross-compiled the same way: this file is the only one affected. The three
that still fail that sweep (test_uring, test_deepseek_v4, test_v4_ownership)
are in TEST_EXCLUDE and are not built on the Windows leg at all.

compat.h joins the rule's prerequisites too, so editing the shim relinks the
test instead of leaving a stale one.
@JustVugg
JustVugg merged commit a6889c7 into dev Sep 13, 2026
28 checks passed
@JustVugg
JustVugg deleted the hotfix-setenv branch September 24, 2026 22:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant