[Tarantool-patches] [PATCH v2 luajit 23/30] test: disable PUC Lua test for fast function name

Sergey Kaplun skaplun at tarantool.org
Fri Mar 26 10:43:06 MSK 2021


LuaJIT can't determine bytecode position for non Lua functions
(in particular for fast functions) and, therefore, detect built-in
function names for errors in tail calls.

This patch disables test that checks name of built-in functions
reported in error in tail call.

Part of tarantool/tarantool#5845
Part of tarantool/tarantool#4473
---
 test/PUC-Lua-5.1-tests/errors.lua | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/test/PUC-Lua-5.1-tests/errors.lua b/test/PUC-Lua-5.1-tests/errors.lua
index cf24e40..af776a7 100644
--- a/test/PUC-Lua-5.1-tests/errors.lua
+++ b/test/PUC-Lua-5.1-tests/errors.lua
@@ -105,9 +105,13 @@ while 1 do
   insert(prefix, a)
 end]], "global 'insert'")
 
-checkmessage([[  -- tail call
-  return math.sin("a")
-]], "'sin'")
+-- LuaJIT: Can't determine bytecode position for non Lua functions
+-- (in particular for fast functions) and, therefore, detect fast
+-- function names for errors in tail calls.
+-- The test is disabled for LuaJIT.
+-- checkmessage([[  -- tail call
+--   return math.sin("a")
+-- ]], "'sin'")
 
 checkmessage([[collectgarbage("nooption")]], "invalid option")
 
-- 
2.31.0



More information about the Tarantool-patches mailing list