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 CA00A70370; Mon, 6 Feb 2023 10:44:58 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org CA00A70370 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1675669499; bh=x0bUewpcg2YHdQWMpvsN8gB5lULx51P1Ma1Tf2tvibI=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=nsg0Zc79sTvsCcluQW2mRHkrYASwUtgxvFHwW8TdZbM/1Eogwwxz/l8XfHGzaAAak AIK5mCwSDQGlnmlBPBnbyXaaaXm7rxDjIdLYRy7rNYXKa37GC6CWeQDHQXEUliE+UV InbXfanPNlmHBpRuaDUG2ARg6uTLv0DaFElwCTps= Received: from mail-ej1-f52.google.com (mail-ej1-f52.google.com [209.85.218.52]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 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 59CAF70370 for ; Mon, 6 Feb 2023 10:44:57 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 59CAF70370 Received: by mail-ej1-f52.google.com with SMTP id lu11so31668991ejb.3 for ; Sun, 05 Feb 2023 23:44:57 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=8HA4KND4gddrMtiw+mEvjhZYXXVCG2kQeqIRMaePRHA=; b=W42WdHh8gaUX9hBjbk4uoNNv2PQNeISv/xsF5dasw0SGNJHsckZ2nVkvm3/idOTwaf 0a6R/Nj9jqmupXxz0wigsoLdE74b7KO/zBh++0KEs/W8HlANj1ToPVZxAg6RcThgvu0b bwF4Y+MhpepqEdkz+4jsbRgnXvRGi2Tk+XFaKDXeXINoqSk1BBlzx4KYQV84iB56ruOD sOSG1wCMfQBXnZ0E/OOr5zEyNFRI0iNE8xcDz6ioXurOndS2faqOwQnV10woo6eMzjwv CPjVPBWBwD1i04AtHs5kJBA4QGPCEb9feF6B1OO2P+18tcDWA4US9ngRuSTbHa+BjL4i EFpA== X-Gm-Message-State: AO0yUKUb2zMfNLzM79aBqqH62bJZAHpPnvBxuWx80bmSovHGYtKLsDjy xUbKvq1TD0YwC51NjQza9TvyKqaQ+cs= X-Google-Smtp-Source: AK7set/9MYwxmF101nwWEDcR5bzgez//UMdUnmDLYlTZydaz4+xP3FmSMc91mK8jD1aOYKYEc3qbxQ== X-Received: by 2002:a17:907:d40b:b0:888:456a:cb76 with SMTP id vi11-20020a170907d40b00b00888456acb76mr19500469ejc.70.1675669496285; Sun, 05 Feb 2023 23:44:56 -0800 (PST) Received: from pony.. ([185.205.79.44]) by smtp.gmail.com with ESMTPSA id c8-20020a170906154800b0087223b8d6efsm5172776ejd.16.2023.02.05.23.44.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Feb 2023 23:44:55 -0800 (PST) To: tarantool-patches@dev.tarantool.org, Sergey Kaplun , Igor Munkin Date: Mon, 6 Feb 2023 10:44:30 +0300 Message-Id: <821de7208007ffc8f10222761dd264cf0c4a0bb4.1675669159.git.sergeyb@tarantool.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH] test: disable cases in PUC-Rio tests for debug line hook 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" From: Sergey Bronnikov In order to fix issue [1] it is required to introduce a wrapper for `__pairs()`. This wrapper breaks a couple of tests for builtin debug module. Patch disables testcases when running under Tarantool. 1. https://github.com/tarantool/tarantool/issues/2867 --- test/PUC-Rio-Lua-5.1-tests/db.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/PUC-Rio-Lua-5.1-tests/db.lua b/test/PUC-Rio-Lua-5.1-tests/db.lua index b148c2dd..b05075bb 100644 --- a/test/PUC-Rio-Lua-5.1-tests/db.lua +++ b/test/PUC-Rio-Lua-5.1-tests/db.lua @@ -169,10 +169,12 @@ test([[for i=1,3 do end ]], {1,2,1,2,1,2,1,3}) +if not _TARANTOOL then test([[for i,v in pairs{'a','b'} do a=i..v end ]], {1,2,1,2,1,3}) +end -- Test is adapted to the behaviour of LuaJIT, as it generates -- only four line events, unlike Lua, which generates five @@ -411,7 +413,9 @@ function g1(x) g(x) end local function h (x) local f=g1; return f(x) end +if not _TARANTOOL then h(true) +end local b = {} debug.sethook(function (e) table.insert(b, e) end, "cr") -- 2.34.1