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 82350C5B2EC; Thu, 22 Aug 2024 17:43:56 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 82350C5B2EC DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1724337836; bh=iiQV4hopa2LCwnr17h+PpSTNE8w5DDgqs0U9E/XMWaA=; h=Date:To:Cc:References:In-Reply-To:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=TuIJXEy478KNOH9KjeIfxJIXu9pY6Kqh1UhKjYr3Gocflzz9W2hiWziW7DgyGrQfY rmfbZeE8/ZvRSXdtORa0F7/4YpAIpp5QBie9XIoDl4Pg73/iy1MtDKxWC2IRPTC3wb RMV6xydxGB1UmvNbQgrNW8ytTv4V4WuUTQXaS2ng= Received: from smtp33.i.mail.ru (smtp33.i.mail.ru [95.163.41.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 76642C5B2E4 for ; Thu, 22 Aug 2024 17:43:55 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 76642C5B2E4 Received: by smtp33.i.mail.ru with esmtpa (envelope-from ) id 1sh92Y-00000008ksF-3W4l; Thu, 22 Aug 2024 17:43:55 +0300 Content-Type: multipart/alternative; boundary="------------w30VGMXSaRLMqWwLE0UJL69H" Message-ID: <36c975d3-5ea6-4076-a59b-22a3b9dde233@tarantool.org> Date: Thu, 22 Aug 2024 17:43:54 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: Sergey Kaplun , Maxim Kokryashkin Cc: tarantool-patches@dev.tarantool.org References: <76ce0d2d3833e7ce64a41cc2f80e8bbfa3664924.1724228998.git.skaplun@tarantool.org> In-Reply-To: <76ce0d2d3833e7ce64a41cc2f80e8bbfa3664924.1724228998.git.skaplun@tarantool.org> X-Mailru-Src: smtp X-4EC0790: 10 X-7564579A: 78E4E2B564C1792B X-77F55803: 4F1203BC0FB41BD9A67092BE052B1D9E8EC46B20539565FB1E5540CB33AF2FFD182A05F538085040420F29A0E83B8AD0C7A4B249DE6549FDC0B9F534A8AF4D3B899CA9E4233F3A8DC9EA2F84C7A7946D X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE7548C33FFD72831AFEA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F79006372A1456D053D20C618638F802B75D45FF36EB9D2243A4F8B5A6FCA7DBDB1FC311F39EFFDF887939037866D6147AF826D8074C31059F61DFEB4DABCA245710FC293EF073E871E550DBCC7F00164DA146DAFE8445B8C89999728AA50765F7900637F6B57BC7E64490618DEB871D839B7333395957E7521B51C2DFABB839C843B9C08941B15DA834481F8AA50765F7900637F3E38EE449E3E2AE389733CBF5DBD5E9B5C8C57E37DE458BD9DD9810294C998ED8FC6C240DEA76428AA50765F79006375D76798AA8B0E470D81D268191BDAD3DBD4B6F7A4D31EC0BE2F48590F00D11D6D81D268191BDAD3D78DA827A17800CE7189DEE51125A4B43EC76A7562686271ED91E3A1F190DE8FD2E808ACE2090B5E14AD6D5ED66289B5259CC434672EE63711DD303D21008E298D5E8D9A59859A8B6B372FE9A2E580EFC725E5C173C3A84C307FFBFDCC3B3F35035872C767BF85DA2F004C90652538430E4A6367B16DE6309 X-C1DE0DAB: 0D63561A33F958A5AF1EC1EB706A176A5002B1117B3ED69669A49526E186AD62D57BAD45EC4C5DE1823CB91A9FED034534781492E4B8EEAD85CCBA673D36D1A4BDAD6C7F3747799A X-C8649E89: 1C3962B70DF3F0ADE00A9FD3E00BEEDF3FED46C3ACD6F73ED3581295AF09D3DF87807E0823442EA2ED31085941D9CD0AF7F820E7B07EA4CF57F8DDC307373A58E5CFC65EE58E884294062948FB412A24F18A5E484A00F4FC5C1052AD1686EE732FB0CAD32ADFBF84AA25C7C115CC295FF5B49367D47710A40AE5F575283DC4F75F4332CA8FE04980913E6812662D5F2AB9AF64DB4688768036DF5FE9C0001AF333F2C28C22F508233FCF178C6DD14203 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojbUwDRTee1XqxyyKEVaXFog== X-Mailru-Sender: 520A125C2F17F0B1E52FEF5D219D61409A7949F8FE40D3DD1F5CD217B0D7D6A827AAC71A5B229F460152A3D17938EB451EB5A0BCEC6A560B3DDE9B364B0DF289BE2DA36745F2EEB5CEBA01FB949A1F1EEAB4BC95F72C04283CDA0F3B3F5B9367 X-Mras: Ok Subject: Re: [Tarantool-patches] [PATCH v2 luajit 40/45] test: remove LuaJIT test 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 Bronnikov via Tarantool-patches Reply-To: Sergey Bronnikov Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" This is a multi-part message in MIME format. --------------w30VGMXSaRLMqWwLE0UJL69H Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sergey, On 21.08.2024 11:58, Sergey Kaplun wrote: > This patch removes the aforementioned test since it is part of the > test. > > Part of tarantool/tarantool#9398 > --- thanks for the patch! LGTM > test/LuaJIT-tests/misc/uclo.lua | 91 --------------------------------- > 1 file changed, 91 deletions(-) > delete mode 100644 test/LuaJIT-tests/misc/uclo.lua > > diff --git a/test/LuaJIT-tests/misc/uclo.lua b/test/LuaJIT-tests/misc/uclo.lua > deleted file mode 100644 > index bd9bd242..00000000 > --- a/test/LuaJIT-tests/misc/uclo.lua > +++ /dev/null > @@ -1,91 +0,0 @@ > - > -local function test_for() > - local z1, z2 > - for i=1,10 do > - local function f() return i end > - if z1 then z2 = f else z1 = f end > - end > - assert(z1() == 1) > - assert(z2() == 10) > -end > - > -local function test_while() > - local z1, z2 > - local i = 1 > - while i <= 10 do > - local j = i > - local function f() return j end > - if z1 then z2 = f else z1 = f end > - i = i + 1 > - end > - assert(z1() == 1) > - assert(z2() == 10) > -end > - > -local function test_repeat() > - local z1, z2 > - local i = 1 > - repeat > - local j = i > - local function f() return j end > - if z1 then z2 = f else z1 = f end > - i = i + 1 > - until i > 10 > - assert(z1() == 1) > - assert(z2() == 10) > -end > - > -local function test_func() > - local function ff(x) > - return function() return x end > - end > - local z1, z2 > - for i=1,10 do > - local f = ff(i) > - if z1 then z2 = f else z1 = f end > - end > - assert(z1() == 1) > - assert(z2() == 10) > -end > - > -test_for() > -test_while() > -test_repeat() > -test_func() > - > -do > - local function f1(a) > - if a > 0 then > - local b = f1(a - 1) > - return function() > - if type(b) == "function" then > - return a + b() > - end > - return a + b > - end > - end > - return a > - end > - > - local function f2(a) > - return f1(a)() > - end > - > - for i = 1, 41 do > - local r = f2(4) + f2(4) > - end > -end > - > --- Don't mark upvalue as immutable if written to after prototype definition. > -do > - local x = 1 > - local function f() > - local y = 0 > - for i=1,100 do y=y+x end > - return y > - end > - assert(f() == 100) > - x = 2 > - assert(f() == 200) > -end > - --------------w30VGMXSaRLMqWwLE0UJL69H Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Sergey,

On 21.08.2024 11:58, Sergey Kaplun wrote:
This patch removes the aforementioned test since it is part of the
<lang/upvalue/closure.lua> test.

Part of tarantool/tarantool#9398
---
thanks for the patch! LGTM
 test/LuaJIT-tests/misc/uclo.lua | 91 ---------------------------------
 1 file changed, 91 deletions(-)
 delete mode 100644 test/LuaJIT-tests/misc/uclo.lua

diff --git a/test/LuaJIT-tests/misc/uclo.lua b/test/LuaJIT-tests/misc/uclo.lua
deleted file mode 100644
index bd9bd242..00000000
--- a/test/LuaJIT-tests/misc/uclo.lua
+++ /dev/null
@@ -1,91 +0,0 @@
-
-local function test_for()
-  local z1, z2
-  for i=1,10 do
-    local function f() return i end
-    if z1 then z2 = f else z1 = f end
-  end
-  assert(z1() == 1)
-  assert(z2() == 10)
-end
-
-local function test_while()
-  local z1, z2
-  local i = 1
-  while i <= 10 do
-    local j = i
-    local function f() return j end
-    if z1 then z2 = f else z1 = f end
-    i = i + 1
-  end
-  assert(z1() == 1)
-  assert(z2() == 10)
-end
-
-local function test_repeat()
-  local z1, z2
-  local i = 1
-  repeat
-    local j = i
-    local function f() return j end
-    if z1 then z2 = f else z1 = f end
-    i = i + 1
-  until i > 10
-  assert(z1() == 1)
-  assert(z2() == 10)
-end
-
-local function test_func()
-  local function ff(x)
-    return function() return x end
-  end
-  local z1, z2
-  for i=1,10 do
-    local f = ff(i)
-    if z1 then z2 = f else z1 = f end
-  end
-  assert(z1() == 1)
-  assert(z2() == 10)
-end
-
-test_for()
-test_while()
-test_repeat()
-test_func()
-
-do
-  local function f1(a)
-    if a > 0 then
-      local b = f1(a - 1)
-      return function()
-	if type(b) == "function" then
-	  return a + b()
-	end
-	return a + b
-      end
-    end
-    return a
-  end
-
-  local function f2(a)
-    return f1(a)()
-  end
-
-  for i = 1, 41 do
-    local r = f2(4) + f2(4)
-  end
-end
-
--- Don't mark upvalue as immutable if written to after prototype definition.
-do
-  local x = 1
-  local function f()
-    local y = 0
-    for i=1,100 do y=y+x end
-    return y
-  end
-  assert(f() == 100)
-  x = 2
-  assert(f() == 200)
-end
-
--------------w30VGMXSaRLMqWwLE0UJL69H--