Tarantool development patches archive
 help / color / mirror / Atom feed
* [Tarantool-patches] [PATCH] test: disable cases in PUC-Rio tests for debug line hook
@ 2023-02-06  7:44 Sergey Bronnikov via Tarantool-patches
  2023-02-06  8:31 ` Sergey Kaplun via Tarantool-patches
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Sergey Bronnikov via Tarantool-patches @ 2023-02-06  7:44 UTC (permalink / raw)
  To: tarantool-patches, Sergey Kaplun, Igor Munkin

From: Sergey Bronnikov <sergeyb@tarantool.org>

In order to fix issue [1] it is required to introduce a wrapper for
`__pairs()`. This wrapper breaks a couple of tests for builtin debug
module. Patch disables testcases when running under Tarantool.

1. https://github.com/tarantool/tarantool/issues/2867
---
 test/PUC-Rio-Lua-5.1-tests/db.lua | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/test/PUC-Rio-Lua-5.1-tests/db.lua b/test/PUC-Rio-Lua-5.1-tests/db.lua
index b148c2dd..b05075bb 100644
--- a/test/PUC-Rio-Lua-5.1-tests/db.lua
+++ b/test/PUC-Rio-Lua-5.1-tests/db.lua
@@ -169,10 +169,12 @@ test([[for i=1,3 do
 end
 ]], {1,2,1,2,1,2,1,3})
 
+if not _TARANTOOL then
 test([[for i,v in pairs{'a','b'} do
   a=i..v
 end
 ]], {1,2,1,2,1,3})
+end
 
 -- Test is adapted to the behaviour of LuaJIT, as it generates
 -- only four line events, unlike Lua, which generates five
@@ -411,7 +413,9 @@ function g1(x) g(x) end
 
 local function h (x) local f=g1; return f(x) end
 
+if not _TARANTOOL then
 h(true)
+end
 
 local b = {}
 debug.sethook(function (e) table.insert(b, e) end, "cr")
-- 
2.34.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-02-10 16:18 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-06  7:44 [Tarantool-patches] [PATCH] test: disable cases in PUC-Rio tests for debug line hook Sergey Bronnikov via Tarantool-patches
2023-02-06  8:31 ` Sergey Kaplun via Tarantool-patches
2023-02-06 12:17   ` Sergey Bronnikov via Tarantool-patches
2023-02-06 13:24     ` Sergey Kaplun via Tarantool-patches
2023-02-06 14:01       ` Sergey Bronnikov via Tarantool-patches
2023-02-08 17:23 ` Alexander Turenko via Tarantool-patches
2023-02-09  7:39   ` Sergey Kaplun via Tarantool-patches
2023-02-10 16:18 ` Igor Munkin via Tarantool-patches

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox