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 0775D6F3C7; Fri, 26 Mar 2021 18:58:14 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 0775D6F3C7 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1616774294; bh=3ezk5hAcCeItjcYhvORLDZnqmiAh9QAQ+6dWGFAQ4qI=; 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=J6VJi2kwKLj4UTLWTGpvps+r8N2BKIadjT4HyEgKnHBONh4tL03qZoRT3YZckBGuQ nFoN9Vo6oVj/TLT97vrUNinzVR6hUX929B3idzGe0/WNInAlTVYSpUU7JCpnm1RN75 1lKsFjlKZd7hXnjvZTx1ag9qahs0z/NLdmqdl3zo= Received: from smtp52.i.mail.ru (smtp52.i.mail.ru [94.100.177.112]) (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 B51BA6F3C7 for ; Fri, 26 Mar 2021 18:58:12 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org B51BA6F3C7 Received: by smtp52.i.mail.ru with esmtpa (envelope-from ) id 1lPoqi-00033a-3X; Fri, 26 Mar 2021 18:58:12 +0300 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.60.0.2.21\)) In-Reply-To: Date: Fri, 26 Mar 2021 18:58:11 +0300 Content-Transfer-Encoding: quoted-printable Message-Id: <66EC76A3-CAD6-4456-8925-D10391EF9D29@tarantool.org> References: To: Sergey Kaplun X-Mailer: Apple Mail (2.3654.60.0.2.21) X-7564579A: 78E4E2B564C1792B X-77F55803: 4F1203BC0FB41BD9ED7173E37F4E329498ADEA61F680B110809A4DE3E6FC56EA182A05F5380850404D8138389A2D085DA3C7326EA267E8417A67938FD7B4CEE7474A216B373D125A X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE78E8764B5BC580342EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F7900637F0D8FAB78312C5B48638F802B75D45FF914D58D5BE9E6BC131B5C99E7648C95C5DD32608FC869F5D40FCD0FA2E418763EB72B9010418E47AA471835C12D1D9774AD6D5ED66289B5259CC434672EE6371117882F4460429724CE54428C33FAD30A8DF7F3B2552694AC26CFBAC0749D213D2E47CDBA5A9658359CC434672EE6371117882F4460429728AD0CFFFB425014E868A13BD56FB6657D81D268191BDAD3DC09775C1D3CA48CFA0F36C8E492AD706BA3038C0950A5D36C8A9BA7A39EFB766EC990983EF5C0329BA3038C0950A5D36D5E8D9A59859A8B62BE79A1C4A15D32B76E601842F6C81A1F004C906525384307823802FF610243DF43C7A68FF6260569E8FC8737B5C2249B372FE9A2E580EFC725E5C173C3A84C3A1C30C8AFC676C8B35872C767BF85DA2F004C90652538430E4A6367B16DE6309 X-B7AD71C0: AC4F5C86D027EB782CDD5689AFBDA7A2AD77751E876CB595E8F7B195E1C978310054EF5B289A1EBFB1D76F471CF06CBF X-C1DE0DAB: 0D63561A33F958A51F839D7C05FCF82C9722025DB8517DDDD33CC1E6B310BF45D59269BC5F550898D99A6476B3ADF6B47008B74DF8BB9EF7333BD3B22AA88B938A852937E12ACA7502E6951B79FF9A3F410CA545F18667F91A7EA1CDA0B5A7A0 X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D34A9A0A0BF1A2CAC62595AD77CFD22A732BB59DB6BD9DD719C3E21588360C52FA5C0F6998E352A59D01D7E09C32AA3244CF399D60B16F421DA2312E4E055C259BF30452B15D76AEC14FACE5A9C96DEB163 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojapPp7P/VpAj1D8mRjADTrw== X-Mailru-Sender: 455D65AE3A139168626D8C76E86D3AC0C8F0D846C53B2719E753A4D7CE5F6B64DDAC019A3742A8B676D79013C85012CDC77752E0C033A69E4BBE7EBD99111A499D0AB74157175C036C18EFA0BB12DBB0 X-Mras: Ok Subject: Re: [Tarantool-patches] [PATCH v2 luajit 27/30] test: disable PUC Lua test for checking arg layout 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. Sergos > On 26 Mar 2021, at 10:43, Sergey Kaplun wrote: >=20 > Unlike LuaJIT, Tarantool doesn't store the given CLI flags in `arg`, > so the table has the following layout: > * arg[-1] -- the binary name > * arg[0] -- the script name > * arg[N] -- the script argument for all N in [1, #arg] >=20 > This patch disables test checking `arg` layout by negative indexes. >=20 > Part of tarantool/tarantool#5845 > Part of tarantool/tarantool#4473 > --- > test/PUC-Lua-5.1-tests/main.lua | 8 +++++++- > 1 file changed, 7 insertions(+), 1 deletion(-) >=20 > diff --git a/test/PUC-Lua-5.1-tests/main.lua = b/test/PUC-Lua-5.1-tests/main.lua > index 73bff52..acc50a6 100644 > --- a/test/PUC-Lua-5.1-tests/main.lua > +++ b/test/PUC-Lua-5.1-tests/main.lua > @@ -71,7 +71,13 @@ local a =3D [[ > ]] > a =3D string.format(a, progname) > prepfile(a) > -RUN('lua "-e " -- %s a b c', prog) > +-- FIXME: Unlike LuaJIT, Tarantool doesn't store the given > +-- CLI flags in `arg`, so the table has the following layout: > +-- * arg[-1] -- the binary name > +-- * arg[0] -- the script name > +-- * arg[N] -- the script argument for all N in [1, #arg] > +-- Test is disabled for the Tarantool binary. > +-- RUN('lua "-e " -- %s a b c', prog) >=20 > -- test 'arg' availability in libraries > -- LuaJIT: LuaJIT v2.1.0-beta3 has extension from Lua 5.3: > --=20 > 2.31.0 >=20