<HTML><BODY><div class="cl-d3xspto902"><div>Hi, Sergey!</div><div> </div><div>Thanks for the patch! LGTM.<br> </div><div data-signature-widget="container"><div data-signature-widget="content"><div>--<br>Best regards,</div><div>Evgeniy Temirgaleev</div></div></div><br><div class="mail-quote-collapse"><blockquote style="border-left:1px solid #0857A6;margin:10px;padding:0 0 0 10px"><span>From: Sergey Kaplun <<a href="mailto:skaplun@tarantool.org">skaplun@tarantool.org</a>><br>To: Sergey Bronnikov <<a href="mailto:sergeyb@tarantool.org">sergeyb@tarantool.org</a>>, Evgeniy Temirgaleev <<a href="mailto:e.temirgaleev@tarantool.org">e.temirgaleev@tarantool.org</a>><br>Cc: tarantool-patches@dev.tarantool.org, Sergey Kaplun <<a href="mailto:skaplun@tarantool.org">skaplun@tarantool.org</a>><br>Date: Thursday, July 2, 2026 5:28 PM +03:00</span><br> <div><div id=""><div class="cl-sow8n21y0o"><div class="js-helper_mr_css_attr js-readmsg-msg_mr_css_attr"><div id="style_17830025380062109858_mr_css_attr"><div id="style_17830025380062109858_BODY_mr_css_attr">RED OS for some reason sets `errno` to 2 ENOENT ("No such file or<br>directory") after the call to `mktime()`. So just skip the test for it.<br>---<br><br>Branch: <a href="https://github.com/tarantool/luajit/tree/skaplun/fix-os-time-test-redos">https://github.com/tarantool/luajit/tree/skaplun/fix-os-time-test-redos</a><br>Failed workflow: <a href="https://github.com/tarantool/tarantool/actions/runs/28585213455/job/84775371860?pr=12886#step:5:20692">https://github.com/tarantool/tarantool/actions/runs/28585213455/job/84775371860?pr=12886#step:5:20692</a><br><br>Side note: The errno is set for __any__ call to the `mktime()`.<br><br>Tested inside the following Docker:<br><br>===================================================================<br>FROM registry.red-soft.ru/ubi8/ubi-minimal:latest<br><br>RUN dnf update -y && \<br>dnf install -y cmake vim make git curl gcc g++ gdb man && \<br>dnf clean all<br>===================================================================<br><br>| docker build . --tag redos<br>| docker run --network=host -ti redos bash<br><br>Then clone LuaJIT and proceed as usual.<br><br>With the patch the test skipped:<br>| 1..0 # SKIP RedOS incrorrect behaviour for mktime<br><br>.../lj-1470-os-time-epoch-minus-1s.test.lua | 18 +++++++++++++++++-<br>1 file changed, 17 insertions(+), 1 deletion(-)<br><br>diff --git a/test/tarantool-tests/lj-1470-os-time-epoch-minus-1s.test.lua b/test/tarantool-tests/lj-1470-os-time-epoch-minus-1s.test.lua<br>index dfe1ee11..ebfe6f22 100644<br>--- a/test/tarantool-tests/lj-1470-os-time-epoch-minus-1s.test.lua<br>+++ b/test/tarantool-tests/lj-1470-os-time-epoch-minus-1s.test.lua<br>@@ -1,9 +1,25 @@<br>local tap = require('tap')<br><br>+local function detect_redos()<br>+ local read_file = require('utils').tools.read_file<br>+ local hasfile, data = pcall(read_file, '/etc/os-release')<br>+ if not hasfile then<br>+ -- Not Linux probably, so not the Red OS.<br>+ return false<br>+ else<br>+ return data:match('RED OS')<br>+ end<br>+end<br>+<br>-- The test file demonstrates os.time() fail to return -1 time<br>-- value.<br>-- See also: <a href="https://github.com/LuaJIT/LuaJIT/issues/1470">https://github.com/LuaJIT/LuaJIT/issues/1470</a>.<br>-local test = tap.test('lj-1470-os-time-epoch-minus-1s')<br>+local test = tap.test('lj-1470-os-time-epoch-minus-1s'):skipcond({<br>+ -- XXX: RED OS for some reason sets `errno` to 2 ENOENT ("No<br>+ -- such file or directory") after the call to `mktime()`. So<br>+ -- just skip the test for it.<br>+ ['RED OS incrorrect behaviour for mktime'] = detect_redos(),<br>+})<br><br>test:plan(1)<br><br>--<br>2.54.0</div></div></div></div></div></div></blockquote></div></div></BODY></HTML>