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 E2C4DCC311; Thu, 21 Jan 2021 15:54:48 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org E2C4DCC311 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1611233688; bh=fWRshHA6LU2GBCg9qHC8n70yYbGiUm06l0E1pTUaR6E=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=x83ebTb79N3IwBl/hZzpm+a+7Gt3GvA/jNlGFPbCOL7AuGiQehCLiF/XCd6PxtzDo tWnPWZaTcB6SZMvUxI6IY6fxvsZYx6iHPXab4a7B0uyPXqmoAYpTPgl1l0HASFUzKm Y7xMDvmNxh14RYpexcJgIfIl5i9JohHBG2aKCoww= Received: from smtpng1.m.smailru.net (smtpng1.m.smailru.net [94.100.181.251]) (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 8EDCACC311 for ; Thu, 21 Jan 2021 15:50:56 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 8EDCACC311 Received: by smtpng1.m.smailru.net with esmtpa (envelope-from ) id 1l2ZQN-0007wD-Fl; Thu, 21 Jan 2021 15:50:55 +0300 To: tarantool-patches@dev.tarantool.org, v.shpilevoy@tarantool.org Date: Thu, 21 Jan 2021 15:50:09 +0300 Message-Id: <6304e1eeb205e3fce71d6f739afadbe5b5582933.1611232655.git.sergeyb@tarantool.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-7564579A: EEAE043A70213CC8 X-77F55803: 4F1203BC0FB41BD9FAB20BF8F0759036E9D016CAEA9DE5620EF9C858B2894E1E182A05F538085040DE0F284B7D7844E4EB3A1A6106AC1A5BFD4E35C84427ACA1AFADD9A17EF27480 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE7A7819E2C739EB5BBEA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F79006376A7AE72AA03243C6EA1F7E6F0F101C674E70A05D1297E1BBC6CDE5D1141D2B1C6C31325A0B2B51BBCDAF456496ABC8146ED137BF6C9B7AA59FA2833FD35BB23D9E625A9149C048EE33AC447995A7AD18BDFBBEFFF4125B51D2E47CDBA5A96583BD4B6F7A4D31EC0BC014FD901B82EE079FA2833FD35BB23D27C277FBC8AE2E8B5FC25ED3FCEC3375A471835C12D1D977C4224003CC836476EC64975D915A344093EC92FD9297F6718AA50765F7900637E5B3C788B76394F7A7F4EDE966BC389F395957E7521B51C24C7702A67D5C33162DBA43225CD8A89F10D407B19AF7F7506D8C47C27EEC5E9FB5C8C57E37DE458B4C7702A67D5C3316FA3894348FB808DB48C21F01D89DB561574AF45C6390F7469DAA53EE0834AAEE X-C1DE0DAB: C20DE7B7AB408E4181F030C43753B8186998911F362727C414F749A5E30D975C2549B6A8B600A67A51E93DBE6F97C3F486661516C9D5FBA29C2B6934AE262D3EE7EAB7254005DCED7532B743992DF240BDC6A1CF3F042BAD6DF99611D93F60EF6EA1BA7CA28B4A74699F904B3F4130E343918A1A30D5E7FCCB5012B2E24CD356 X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D34D95739AEDB3821B470159340ADF46FFBB9C81E3CD4B37BBD1EDCB69E45AF0850B7BF6711649A51611D7E09C32AA3244C1193DE67BC37A4CDEF7AFE64EAB11E95250262A5EE9971B0927AC6DF5659F194 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojYT//mZRaUehPhObwK2f3Iw== X-Mailru-Sender: 689FA8AB762F73936BC43F508A06382243BB46E6378261ED6F6F1E14283930F7DD788429FD8613638ED9BB8B05EE7B3AFB559BB5D741EB96D19CD4E7312BAA970A04DAD6CC59E33667EA787935ED9F1B X-Mras: Ok Subject: [Tarantool-patches] [PATCH v8 09/14] test: fix luacheck warnings W511 in test/sql-tap 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: sergeyb@tarantool.org Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" From: Sergey Bronnikov W511 (Unreachable code) Part of #5464 --- .luacheckrc | 2 -- test/sql-tap/date.test.lua | 3 ++- test/sql-tap/select1.test.lua | 3 ++- test/sql-tap/table.test.lua | 3 ++- test/sql-tap/tkt-bd484a090c.test.lua | 3 ++- test/sql-tap/tkt2192.test.lua | 3 ++- 6 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.luacheckrc b/.luacheckrc index 31f9528ad..88fc34fa4 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -51,8 +51,6 @@ exclude_files = { files["test/sql-tap/**/*.lua"] = { ignore = { - -- Unreachable code. - "511", -- Loop can be executed at most once. "512", -- An empty if branch. diff --git a/test/sql-tap/date.test.lua b/test/sql-tap/date.test.lua index fe5150719..0b37d52f8 100755 --- a/test/sql-tap/date.test.lua +++ b/test/sql-tap/date.test.lua @@ -29,7 +29,8 @@ test:plan(0) -- Disabled until #3694 is resolved. -- -if false then +local is_gh_3694_closed = false +if is_gh_3694_closed then local function datetest(tnum, expr, result) test:do_test( "date-"..tnum, diff --git a/test/sql-tap/select1.test.lua b/test/sql-tap/select1.test.lua index d1301e5ad..2f61ae0ec 100755 --- a/test/sql-tap/select1.test.lua +++ b/test/sql-tap/select1.test.lua @@ -1513,7 +1513,8 @@ test:do_execsql_test( -- TODO: This test is failing because f1 is now being loaded off the -- disk as a vdbe integer, not a string. Hence the value of f1/(f1-11) -- changes because of rounding. Disable the test for now. -if false +local is_gh_5737_closed = false +if is_gh_5737_closed then test:do_execsql_test( "select1-8.4", diff --git a/test/sql-tap/table.test.lua b/test/sql-tap/table.test.lua index 2817e1e72..bb36d994e 100755 --- a/test/sql-tap/table.test.lua +++ b/test/sql-tap/table.test.lua @@ -945,7 +945,8 @@ test:do_execsql_test( -- -- Disabled until #3694 is resolved. -- -if false then +local is_gh_3694_closed = false +if is_gh_3694_closed then test:do_execsql_test( "table-13.1", [[ diff --git a/test/sql-tap/tkt-bd484a090c.test.lua b/test/sql-tap/tkt-bd484a090c.test.lua index 6187fee7f..6cd219722 100755 --- a/test/sql-tap/tkt-bd484a090c.test.lua +++ b/test/sql-tap/tkt-bd484a090c.test.lua @@ -21,7 +21,8 @@ test:plan(0) -- Disabled until #3694 is resolved. -- -if false then +local is_gh_3694_closed = false +if is_gh_3694_closed then test:do_test( 1.1, function() diff --git a/test/sql-tap/tkt2192.test.lua b/test/sql-tap/tkt2192.test.lua index dabdfd141..74ec19a63 100755 --- a/test/sql-tap/tkt2192.test.lua +++ b/test/sql-tap/tkt2192.test.lua @@ -26,7 +26,8 @@ test:plan(4) -- Disabled until #3694 is resolved. -- -if false then +local is_gh_3694_closed = false +if is_gh_3694_closed then test:do_execsql_test( "tkt2192-1.1", [[ -- 2.25.1