<HTML><BODY><div>Hi!</div><div>I have fixed a typo in the commit, so here is the diff:</div><div>=============================================================</div><div><div>diff --git a/test/PUC-Rio-Lua-5.1-tests/db.lua b/test/PUC-Rio-Lua-5.1-tests/db.lua<br>index f254cde6..fce85b19 100644<br>--- a/test/PUC-Rio-Lua-5.1-tests/db.lua<br>+++ b/test/PUC-Rio-Lua-5.1-tests/db.lua<br>@@ -475,7 +475,7 @@ end</div><div> local co = coroutine.create(f)<br> coroutine.resume(co, 3)<br>--- Test is adapted to the behaviour of LuaJIT.<br>+-- Test is adapted to the behavior of LuaJIT.<br> checktraceback(co, {"yield", "db.lua"})<br>=============================================================</div></div><div> </div><div>Best regards,<div>Maxim Kokryashkin</div><div> </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_16325043230877829720_BODY">LuaJIT does not provide information about tail calls<br>unlike, Lua 5.1 does, so a traceback in LuaJIT may be different.<br><br>Consider this chunck of code:<br>```<br>local function checktraceback (co, p)<br>  local tb = debug.traceback(co)<br>  local i = 0<br>  for l in string.gmatch(tb, "[^\n]+\n?") do<br>    assert(i == 0 or string.find(l, p[i]))<br>    i = i+1<br>  end<br>  assert(p[i] == nil)<br>end<br><br>local function f (n)<br>  if n > 0 then return f(n-1)<br>  else coroutine.yield() end<br>end<br><br>local co = coroutine.create(f)<br>coroutine.resume(co, 3)<br>checktraceback(co, {"yield", "db.lua", "tail", "tail", "tail"})<br>```<br><br>For LuaJIT traceback looks like the following:<br>```<br>stack traceback:<br>        [C]: in function 'yield'<br>        db.lua:436: in function <db.lua:434><br>```<br><br>And for Lua 5.1 it looks like the following:<br>```<br>stack traceback:<br>        [C]: in function 'yield'<br>        db.lua:436: in function <db.lua:434><br>        (tail call): ?<br>        (tail call): ?<br>        (tail call): ?<br>```<br><br>Closes tarantool/tarantool#5703<br>Part of tarantool/tarantool#5845<br>Part of tarantool/tarantool#4473<br>---<br>Issue: <a href="https://github.com/tarantool/tarantool/issues/5703" target="_blank">https://github.com/tarantool/tarantool/issues/5703</a><br>GitHub branch: <a href="https://github.com/tarantool/luajit/tree/fckxorg/gh-5703-adapt-traceback-tail-call-PUC-Rio" target="_blank">https://github.com/tarantool/luajit/tree/fckxorg/gh-5703-adapt-traceback-tail-call-PUC-Rio</a><br><br> test/PUC-Rio-Lua-5.1-tests/db.lua | 5 ++---<br> 1 file changed, 2 insertions(+), 3 deletions(-)<br><br>diff --git a/test/PUC-Rio-Lua-5.1-tests/db.lua b/test/PUC-Rio-Lua-5.1-tests/db.lua<br>index 56f59ea8..f254cde6 100644<br>--- a/test/PUC-Rio-Lua-5.1-tests/db.lua<br>+++ b/test/PUC-Rio-Lua-5.1-tests/db.lua<br>@@ -475,9 +475,8 @@ end<br> <br> local co = coroutine.create(f)<br> coroutine.resume(co, 3)<br>--- FIXME: Behavior is different for LuaJIT.<br>--- See the comment to `h()` above. Test is disabled for LuaJIT.<br>--- checktraceback(co, {"yield", "db.lua", "tail", "tail", "tail"})<br>+-- Test is adapted to the behaviour of LuaJIT.<br>+checktraceback(co, {"yield", "db.lua"})<br> <br> <br> co = coroutine.create(function (x)<br>--<br>2.33.0</div></div></div></div></blockquote><div> </div></div></BODY></HTML>