From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from [87.239.111.99] (localhost [127.0.0.1]) by dev.tarantool.org (Postfix) with ESMTP id D16EE6BD3C; Fri, 26 Mar 2021 10:51:43 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org D16EE6BD3C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1616745103; bh=gWKKPCDBqTQSYp/lkw2T1bRWHVLZGQS5GB5UUh8ZoHU=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=GzytTI8bk2MRQNyaM2Jz8Idpa7UUGlZAiperLLQtZqDreBPXqrPmUVfDjH+X7vPCX +jdJoUU5Km+RHw5Yxwrxrx5P7L0s/53erjvYKebinStjsDOGjbfKsNc+q+zerO4kCc gcS/zldBNH0BvH4FdB5pQKjc/C5yHEHWFspveYZ8= Received: from smtp63.i.mail.ru (smtp63.i.mail.ru [217.69.128.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 1410A68F43 for ; Fri, 26 Mar 2021 10:44:27 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 1410A68F43 Received: by smtp63.i.mail.ru with esmtpa (envelope-from ) id 1lPh8s-00042u-2H; Fri, 26 Mar 2021 10:44:26 +0300 To: Sergey Ostanevich , Igor Munkin Date: Fri, 26 Mar 2021 10:42:58 +0300 Message-Id: X-Mailer: git-send-email 2.31.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-7564579A: 646B95376F6C166E X-77F55803: 4F1203BC0FB41BD9064ADF4728AA0EE9F947F818E4E5150DE0627C7B5DF808F3182A05F538085040D244CA1D2CD7B7B51D24FCA8DF433AB51E76C1751A8717AD19B96D3EB7EEF14A X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE78E8764B5BC580342EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F7900637BBCE7257090F96C9EA1F7E6F0F101C67CDEEF6D7F21E0D1D174C73DBBBFC7664522CCF267CC2B9BFEAE60D00F963E0618CFB14B2019D42F0389733CBF5DBD5E913377AFFFEAFD269176DF2183F8FC7C091DAD9F922AA71188941B15DA834481FCF19DD082D7633A0EF3E4896CB9E6436389733CBF5DBD5E9D5E8D9A59859A8B625DC386152A6764ACC7F00164DA146DA6F5DAA56C3B73B237318B6A418E8EAB86D1867E19FE14079C09775C1D3CA48CFC5EA940A35A165FF2DBA43225CD8A89F890A246B268E114EC6EABA9B74D0DA47B5C8C57E37DE458BEDA766A37F9254B7 X-C1DE0DAB: C20DE7B7AB408E4181F030C43753B8186998911F362727C414F749A5E30D975C5DD32608FC869F5DA8B548BFEA6169B860687B8C70C38F8B9C2B6934AE262D3EE7EAB7254005DCED7532B743992DF240BDC6A1CF3F042BAD6DF99611D93F60EFF532FBFD8162E58C699F904B3F4130E343918A1A30D5E7FCCB5012B2E24CD356 X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D341E2D05735FCBECD15A4A972401504862AB8AC2ABC4BE83895D2BDFB5E48D82F46105434CB851ADBE1D7E09C32AA3244C783CAA4304DA3C7719094A2276F185123A92A9747B6CC886927AC6DF5659F194 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojapPp7P/VpAiLKHmWIjNhCg== X-Mailru-Sender: 3B9A0136629DC91206CBC582EFEF4CB44628095D5CC071AAC37CE200D0FCECB7FA54D032A7B26878F2400F607609286E924004A7DEC283833C7120B22964430C52B393F8C72A41A89437F6177E88F7363CDA0F3B3F5B9367 X-Mras: Ok Subject: [Tarantool-patches] [PATCH v2 luajit 15/30] test: disable PUC-Lua test for per-coroutine hooks X-BeenThere: tarantool-patches@dev.tarantool.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Sergey Kaplun via Tarantool-patches Reply-To: Sergey Kaplun Cc: tarantool-patches@dev.tarantool.org Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" LuaJIT does not support per-coroutine hooks. See actual status at https://luajit.org/status.html. This patch disables tests for per-coroutine hooks in . Part of tarantool/tarantool#5845 Part of tarantool/tarantool#4473 --- test/PUC-Lua-5.1-tests/db.lua | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/test/PUC-Lua-5.1-tests/db.lua b/test/PUC-Lua-5.1-tests/db.lua index c704877..8ea6af7 100644 --- a/test/PUC-Lua-5.1-tests/db.lua +++ b/test/PUC-Lua-5.1-tests/db.lua @@ -511,8 +511,11 @@ a,b = debug.getlocal(co, 1, 2) assert(a == "a" and b == 1) debug.setlocal(co, 1, 2, "hi") assert(debug.gethook(co) == foo) -assert(table.getn(tr) == 2 and - tr[1] == l.currentline-1 and tr[2] == l.currentline) +-- LuaJIT does not support per-coroutine hooks. +-- See also https://luajit.org/status.html. +-- LuaJIT: Test is disabled for LuaJIT. +-- assert(table.getn(tr) == 2 and +-- tr[1] == l.currentline-1 and tr[2] == l.currentline) a,b,c = pcall(coroutine.resume, co) assert(a and b and c == l.currentline+1) @@ -520,9 +523,13 @@ checktraceback(co, {"yield", "in function <"}) a,b = coroutine.resume(co) assert(a and b == "hi") -assert(table.getn(tr) == 4 and tr[4] == l.currentline+2) +-- Behavior is different for LuaJIT. See the comment above. +-- LuaJIT: Test is disabled for LuaJIT. +-- assert(table.getn(tr) == 4 and tr[4] == l.currentline+2) assert(debug.gethook(co) == foo) -assert(debug.gethook() == nil) +-- Behavior is different for LuaJIT. See the comment above. +-- LuaJIT: Test is disabled for LuaJIT. +-- assert(debug.gethook() == nil) checktraceback(co, {}) -- 2.31.0