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 9C2036F3C7; Fri, 26 Mar 2021 14:44:23 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 9C2036F3C7 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1616759063; bh=Zceww9ViTbT7uJr5sY90TNm0k9WaZrmz8slFXg3ePdA=; h=In-Reply-To:Date:References:To:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=VS3SdUGqsZOtpNWmhsuCfMUFiUyEQZ0xxvG1YTS8Wx/nCuqd2HnN+ZtGEMH8z1NAa hHjDuH8NptFP/LSTD0WPqqGF74QWCwHjyZgJFZUPa2UPaS3egfepf+Esum8Y0B6Tqi o1mMgfMr+3PrhFZq/J0Fv7JTy4/yOZd4DGxlw7rc= Received: from smtp61.i.mail.ru (smtp61.i.mail.ru [217.69.128.41]) (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 683B96F3C7 for ; Fri, 26 Mar 2021 14:44:22 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 683B96F3C7 Received: by smtp61.i.mail.ru with esmtpa (envelope-from ) id 1lPkt3-0005SX-Ik; Fri, 26 Mar 2021 14:44:21 +0300 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.60.0.2.21\)) In-Reply-To: <2a4f7f1c49f5c9c0ffd1a512d809588f7a7694db.1616743343.git.skaplun@tarantool.org> Date: Fri, 26 Mar 2021 14:44:20 +0300 Content-Transfer-Encoding: quoted-printable Message-Id: <6918F7E4-8123-4002-BEE4-DDA46388933E@tarantool.org> References: <2a4f7f1c49f5c9c0ffd1a512d809588f7a7694db.1616743343.git.skaplun@tarantool.org> To: Sergey Kaplun X-Mailer: Apple Mail (2.3654.60.0.2.21) X-7564579A: 646B95376F6C166E X-77F55803: 4F1203BC0FB41BD9064ADF4728AA0EE9F947F818E4E5150DE0627C7B5DF808F3182A05F5380850405B208C094375C15A9D352FEC1746B0FFB28362DD5F96F7A6958C88AA9DCC8D66 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE7922E451CE6E839B1EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F79006374E88016F1B7D8D248638F802B75D45FF914D58D5BE9E6BC131B5C99E7648C95C5DD32608FC869F5D9853C2FDC927BBEBAB117E9406FFF620A471835C12D1D9774AD6D5ED66289B5278DA827A17800CE77A825AB47F0FC8649FA2833FD35BB23D2EF20D2F80756B5F868A13BD56FB6657A471835C12D1D977725E5C173C3A84C37EF884183F8E4D67117882F4460429728AD0CFFFB425014E868A13BD56FB6657E2021AF6380DFAD1A18204E546F3947C0B7D0EA88DDEDAC722CA9DD8327EE4930A3850AC1BE2E73589424AA0EF8DE9BAC4224003CC83647689D4C264860C145E X-C1DE0DAB: 0D63561A33F958A5C5B0A49C9275DDA9002114E4159C0D3EA94BCAF09D985AB0D59269BC5F550898D99A6476B3ADF6B47008B74DF8BB9EF7333BD3B22AA88B938A852937E12ACA7502E6951B79FF9A3F410CA545F18667F91A7EA1CDA0B5A7A0 X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D34524B2D44961BF9C6A6020AAA63E2B87F35FCCFB2FAF4D00DBD436BA0DD00B4167F8899F9FB95005E1D7E09C32AA3244C15407EDED29ADF71E456FC2BC991B51D259227199D06760AFACE5A9C96DEB163 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojapPp7P/VpAh/f4MmIT5M0w== X-Mailru-Sender: 3B9A0136629DC912F4AABCEFC589C81EDCD3915ACB7FE2DA480EBBF1BB504216211C624AD024D48AAD07DD1419AC565FA614486B47F28B67C5E079CCF3B0523AED31B7EB2E253A9E112434F685709FCF0DA7A0AF5A3A8387 X-Mras: Ok Subject: Re: [Tarantool-patches] [PATCH v2 luajit 10/30] test: adapt test for debug.setlocal in Lua suite 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 Ostanevich via Tarantool-patches Reply-To: Sergey Ostanevich Cc: tarantool-patches@dev.tarantool.org Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" LGTM, minor update to message Sergos > On 26 Mar 2021, at 10:42, Sergey Kaplun wrote: >=20 > LuaJIT: Lua 5.1 interprets `...` in the vararg functions like > an additional first argument unlike LuaJIT does. ^^^^^^^^^^^ means local?=20 So, that getlocal() later in g() works as expected? > This behaviour is extension is from Lua 5.2. >=20 > This patch adapted test considering LuaJIT's and Lua 5.2 behaviour. > The test is adapted like it done in Lua 5.2 test suite taken from > https://www.lua.org/tests/lua-5.2.0-tests.tar.gz. >=20 > Closes tarantool/tarantool#5694 > Part of tarantool/tarantool#5845 > Part of tarantool/tarantool#4473 > --- > test/PUC-Lua-5.1-tests/db.lua | 7 +++++++ > 1 file changed, 7 insertions(+) >=20 > diff --git a/test/PUC-Lua-5.1-tests/db.lua = b/test/PUC-Lua-5.1-tests/db.lua > index a8c7196..e5d8885 100644 > --- a/test/PUC-Lua-5.1-tests/db.lua > +++ b/test/PUC-Lua-5.1-tests/db.lua > @@ -221,6 +221,13 @@ assert(debug.getinfo(1, "l").currentline =3D=3D = L+11) -- check count of lines >=20 >=20 > function g(...) > + -- LuaJIT: Lua 5.1 interprets `...` in the vararg functions like > + -- an additional first argument unlike LuaJIT does. > + -- This extension is from Lua 5.2. > + -- See also https://github.com/tarantool/tarantool/issues/5694. > + -- Test is adapted from PUC-Rio Lua 5.2 test suite by adding > + -- additional variable `arg`. > + local arg =3D {...} > do local a,b,c; a=3Dmath.sin(40); end > local feijao > local AAAA,B =3D "xuxu", "mam=EF=BF=BDo" > --=20 > 2.31.0 >=20