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 3F1A06EC55; Thu, 9 Sep 2021 10:05:15 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 3F1A06EC55 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1631171115; bh=Paw78nrXysygDPQFsiRhCZFOpMFagzLmtXa0YRJyvGE=; 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=QS1WdvAUYmb5DQOI6zS03ubr0RBm+hYWLM2ymCOySyk4AgPoxm+Im/ybTY85j02qO qOv1U5rERcTypiUsoGm2oeZ1NpbvYmT8gHCOpspoRAY+3xWSBjRCSST76VM5DwTww9 LMA5rvBWpbCMowfP7LGQaqOEzn8VhTaT+4OJ5qcY= Received: from smtp42.i.mail.ru (smtp42.i.mail.ru [94.100.177.102]) (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 A09F86EC55 for ; Thu, 9 Sep 2021 10:04:44 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org A09F86EC55 Received: by smtp42.i.mail.ru with esmtpa (envelope-from ) id 1mOE71-0000qt-QB; Thu, 09 Sep 2021 10:04:44 +0300 To: Igor Munkin , Sergey Ostanevich Date: Thu, 9 Sep 2021 10:03:17 +0300 Message-Id: <0d207e1a15360109e1e9c4bb775248f0fc04edc6.1631170629.git.skaplun@tarantool.org> X-Mailer: git-send-email 2.31.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-4EC0790: 10 X-7564579A: B8F34718100C35BD X-77F55803: 4F1203BC0FB41BD91AE02D33A9C88A2FBA0FFC16CEFBFC694531AE86BFF036DF00894C459B0CD1B90C361F90BE749F570B7C43FB776F65292D88DA3C501BBACF261E30AE1A3D8EFE X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE727FD6E7FC3A8F857EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F790063716A4A39B750036BB8638F802B75D45FF36EB9D2243A4F8B5A6FCA7DBDB1FC311F39EFFDF887939037866D6147AF826D8F0B44A019604B8929DFECBCC4A7C26E8117882F4460429724CE54428C33FAD305F5C1EE8F4F765FC2EE5AD8F952D28FBA471835C12D1D9774AD6D5ED66289B52BA9C0B312567BB23117882F44604297287769387670735209ECD01F8117BC8BEA471835C12D1D977C4224003CC8364762BB6847A3DEAEFB0F43C7A68FF6260569E8FC8737B5C2249EC8D19AE6D49635B68655334FD4449CB9ECD01F8117BC8BEAAAE862A0553A39223F8577A6DFFEA7CAA44A86D94E7BBB043847C11F186F3C59DAA53EE0834AAEE X-B7AD71C0: AC4F5C86D027EB782CDD5689AFBDA7A213B5FB47DCBC3458834459D11680B5053CAA20BC2363C5491C0930925DF36A27 X-C1DE0DAB: C20DE7B7AB408E4181F030C43753B8186998911F362727C4C7A0BC55FA0FE5FC0A35A0902098AEC8E1BB3D8EB0C77172ACE3EF0DB7D88B3AB1881A6453793CE9C32612AADDFBE061C61BE10805914D3804EBA3D8E7E5B87ABF8C51168CD8EBDBF80095D1E17F4578DC48ACC2A39D04F89CDFB48F4795C241BDAD6C7F3747799A X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D348B409C2D257583DF4E986037906E01CAE6EA7BCF15E90273EE9E94CE2205BCC388004C7B4755D4161D7E09C32AA3244C14A81D3304DFF5AE3A6302C907A2E76A795D98D676DD64D0927AC6DF5659F194 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojV8xpaxME9p87fMGfUqCnPQ== X-Mailru-Sender: 3B9A0136629DC91206CBC582EFEF4CB47054B3AEA92FC029386CBAB42192B67C5BB4E518513DA593F2400F607609286E924004A7DEC283833C7120B22964430C52B393F8C72A41A89437F6177E88F7363CDA0F3B3F5B9367 X-Mras: Ok Subject: [Tarantool-patches] [PATCH luajit 1/3] test: fix path storage for non-concatable objects 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" When the key of a table to compare via `tap.test:is_deeply()` is non-concatable object (i.e. lightuserdata) concatenation with path raises an error. This patch converts object to string to avoid this error. Needed for tarantool/tarantool#5629 --- test/tarantool-tests/tap.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/tarantool-tests/tap.lua b/test/tarantool-tests/tap.lua index 44fcac3d..a1f54d20 100644 --- a/test/tarantool-tests/tap.lua +++ b/test/tarantool-tests/tap.lua @@ -166,7 +166,7 @@ local function is_deeply(test, got, expected, message, extra) for k, v in pairs(got) do has[k] = true - extra.path = path .. "." .. k + extra.path = path .. "." .. tostring(k) if not cmpdeeply(v, expected[k], extra) then return false end @@ -175,7 +175,7 @@ local function is_deeply(test, got, expected, message, extra) -- Check if expected contains more keys then got. for k, v in pairs(expected) do if has[k] ~= true and (extra.strict or v ~= NULL) then - extra.path = path .. "." .. k + extra.path = path .. "." .. tostring(k) extra.expected = "key (exists): " .. tostring(k) extra.got = "key (missing): " .. tostring(k) return false -- 2.31.0