]> git.kaiwu.me - njs.git/commit
Tests: fail debug context tests on invalid responses
authorDmitry Volyntsev <xeioex@nginx.com>
Sat, 24 Oct 2026 05:45:29 +0000 (22:45 -0700)
committerDmitry Volyntsev <xeioexception@gmail.com>
Thu, 19 Nov 2026 06:44:10 +0000 (22:44 -0800)
commite46cdc6f1a72579083a864b7965ffae70da03ffc
tree59fdacd2b239bf86c8e1a216ccd3ce11338d9192
parentd206219e4dd810319efcaee5544c789b473a1582
Tests: fail debug context tests on invalid responses

Previously, missing engine IDs were treated as evidence of a non-debug
build.  An endpoint failure could therefore skip a debug test, while
merge tests could pass after ignoring invalid responses from some
locations or servers.  The response-based guards were introduced in
c4389399.

Check --with-debug independently before starting nginx.  Require a
successful HTTP response and a complete numeric engine ID from every
endpoint, or a complete numeric stream response, before comparing
contexts.  Let startup and response failures fail the tests instead
of reporting unsupported functionality.
nginx/t/js_import2.t
nginx/t/js_merge_location_blocks.t
nginx/t/js_merge_server_blocks.t
nginx/t/stream_js_import2.t