mirror of
https://github.com/brazilofmux/tinymux
synced 2026-08-13 00:23:11 -04:00
The #1653 snprintf ban converted mux_nls.cpp's path build to mux_sprintf -- correct in itself -- and test_plural.cpp compiles that file standalone to reach the anonymous-namespace plural_eval(), linking nothing. Undefined reference; `make test` red at test-nls-plural on master for everyone. Supply the symbol in the test, vsnprintf-backed, with the honesty note in place: the only caller is mux_nls_init()'s catalogue-path build, which no plural test exercises -- the linker merely needs the definition. If a tested path ever formats through the stub, the note says to stop stubbing and link the real one, because mux_sprintf differs from vsnprintf at UTF-8 truncation boundaries. Same shape as the established recipe for unit-testing library TUs with a handful of stubs (tests/dbt, netaddr). Verified: make test-nls-plural 43 passed, 0 failed. Found while validating #1745 on this box -- its TESTEXIT=2 here was this master breakage, not the lua_jit flip. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| check_nls.py | ||
| run.sh | ||
| run_ko.sh | ||
| test_plural.cpp | ||