]> git.kaiwu.me - njs.git/commit
Tests: honor injected engines in QuickJS lifetime tests master
authorDmitry Volyntsev <xeioex@nginx.com>
Wed, 11 Nov 2026 00:48:58 +0000 (16:48 -0800)
committerDmitry Volyntsev <xeioexception@gmail.com>
Wed, 11 Nov 2026 21:33:45 +0000 (13:33 -0800)
commitd5d85aef15ce0c66ef7c98ec3a0c3dd5d290039b
tree3993eeb53553eba64c28ac273d309f26bdd77ab7
parentaaaf571211d59e7b7365f7e038c6dca7d9536e08
Tests: honor injected engines in QuickJS lifetime tests

Hardcoded QuickJS directives run these tests in the default njs pass
and conflict with CI engine injection.  Probe the selected engine and
skip the QuickJS-specific checks when njs is active.

Check both HTTP and stream engines for the GC test.  Use an isolated
probe module for the redirect test so probing does not change the
source and destination visit counters.
nginx/t/js_context_reuse_redirect.t
nginx/t/js_fetch_object_lifetime.t
nginx/t/js_qjs_gc_mark.t