<HTML><BODY><div>Hi, Igor!</div><div>Thanks for the patch!</div><div>Except for the comments mentioned by Sergey, I have a few</div><div>other regarding the commit message.</div><div> </div><blockquote style="border-left:1px solid #0857A6; margin:10px; padding:0 0 0 10px;"><div> <blockquote style="border-left:1px solid #0857A6; margin:10px; padding:0 0 0 10px;"><div id=""><div class="js-helper js-readmsg-msg"><div><div id="style_16763078120173415151_BODY">lua-Harness consider whether JIT is enabled or not in scope of 403-jit.t</div></div></div></div></blockquote><div>Typo: s/consider/considers</div><div>Typo: s/in scope of/in the scope of the/</div><blockquote style="border-left:1px solid #0857A6; margin:10px; padding:0 0 0 10px;"><div><div class="js-helper js-readmsg-msg"><div><div>and 411-luajit.t tests. However, the original condition is wrong, since<br><jit.status> yields false for both cases, when JIT is just turned off<br>and when LuaJIT is build without compiler support. So if <jit.status></div></div></div></div></blockquote><div>Typo: s/build/built</div><blockquote style="border-left:1px solid #0857A6; margin:10px; padding:0 0 0 10px;"><div><div class="js-helper js-readmsg-msg"><div><div>yields false, the latter case is considered. The condition is fixed to<br>differ both aforementioned cases the following way: when <jit.status><br>yields only compiler status with no flags listing, LuaJIT is built<br>without compiler; if there is more than one value returned, JIT support<br>is on aboard.</div></div></div></div></blockquote><div>Typo: s/aboard/board</div><blockquote style="border-left:1px solid #0857A6; margin:10px; padding:0 0 0 10px;"><div><div class="js-helper js-readmsg-msg"><div><div>Part of tarantool/tarantool#8252<br><br>Signed-off-by: Igor Munkin <<a href="/compose?To=imun@tarantool.org">imun@tarantool.org</a>><br>---<br> test/lua-Harness-tests/403-jit.t | 2 +-<br> test/lua-Harness-tests/411-luajit.t | 2 +-<br> 2 files changed, 2 insertions(+), 2 deletions(-)<br><br>diff --git a/test/lua-Harness-tests/403-jit.t b/test/lua-Harness-tests/403-jit.t<br>index 0f986da9..0aa5d367 100755<br>--- a/test/lua-Harness-tests/403-jit.t<br>+++ b/test/lua-Harness-tests/403-jit.t<br>@@ -31,7 +31,7 @@ if not jit then<br>     skip_all("only with LuaJIT")<br> end<br> <br>-local compiled_with_jit = jit.status()<br>+local compiled_with_jit = select('#', jit.status()) > 1<br> local luajit20 = jit.version_num < 20100 and not jit.version:match'RaptorJIT'<br> local has_jit_opt = compiled_with_jit<br> local has_jit_security = jit.security<br>diff --git a/test/lua-Harness-tests/411-luajit.t b/test/lua-Harness-tests/411-luajit.t<br>index 3a9a7b8f..e3b6c7a8 100755<br>--- a/test/lua-Harness-tests/411-luajit.t<br>+++ b/test/lua-Harness-tests/411-luajit.t<br>@@ -37,7 +37,7 @@ if not pcall(io.popen, lua .. [[ -e "a=1"]]) then<br>     skip_all("io.popen not supported")<br> end<br> <br>-local compiled_with_jit = jit.status()<br>+local compiled_with_jit = select('#', jit.status()) > 1<br> local has_jutil = pcall(require, 'jit.util')<br> local has_openresty_listing = profile.openresty or jit.version:match'moonjit'<br> <br>--<br>2.30.2</div></div></div></div></blockquote><div><div>--<br>Best regards,</div><div>Maxim Kokryashkin</div></div><div> </div></div></blockquote></BODY></HTML>