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 602486BD23; Tue, 13 Apr 2021 01:09:23 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 602486BD23 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1618265363; bh=naN6wKjujDNDrLjM/Dj983ge9Mdgm9U2srLmsQVVrrY=; h=To:Cc:References:Date:In-Reply-To:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=ROQD7O45IYz+yXyuYGfWfM9fGsIEJ0Cp5lznE3KqDoJOfL9WHRIWbnBvNlrCStMBd NeuriFHbvdgN9xj/pxrDCv/N5WxwphZIAyc/TUfEH21/MtLtLKtrpHE/S9uOpzG7B/ 3pLjy9YrT+2wS/2z2JF1fZ4dFFBR2pwv4Ek1dFkY= Received: from smtpng3.m.smailru.net (smtpng3.m.smailru.net [94.100.177.149]) (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 091966BD19 for ; Tue, 13 Apr 2021 01:08:58 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 091966BD19 Received: by smtpng3.m.smailru.net with esmtpa (envelope-from ) id 1lW4jp-0006AC-KK; Tue, 13 Apr 2021 01:08:57 +0300 To: Cyrill Gorcunov Cc: tml References: <20210408164151.1759348-1-gorcunov@gmail.com> <20210408164151.1759348-7-gorcunov@gmail.com> Message-ID: Date: Tue, 13 Apr 2021 00:08:56 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-7564579A: 78E4E2B564C1792B X-77F55803: 4F1203BC0FB41BD92FFCB8E6708E7480EBD5CA77A668ECB87DA2124B0A8E6609182A05F5380850404700879BB7112FD6E4A50F1B1A240C96F69C2AD9F317670493A42C2049CC3692 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE7FFEB5AA78C4D87BFC2099A533E45F2D0395957E7521B51C2CFCAF695D4D8E9FCEA1F7E6F0F101C6778DA827A17800CE7BC21C294753CF0FAEA1F7E6F0F101C67CDEEF6D7F21E0D1D9295C2E9FA3191EE1B59CA4C82EFA658D1386DBF6FB757AAD41989A4E9CFDC4DF6B57BC7E64490618DEB871D839B73339E8FC8737B5C2249D082881546D93491CC7F00164DA146DAFE8445B8C89999729449624AB7ADAF37F6B57BC7E64490611E7FA7ABCAF51C92176DF2183F8FC7C07E7E81EEA8A9722B8941B15DA834481F9449624AB7ADAF372E808ACE2090B5E1725E5C173C3A84C3C5EA940A35A165FF2DBA43225CD8A89F83C798A30B85E16BC6EABA9B74D0DA47B5C8C57E37DE458BEDA766A37F9254B7 X-B7AD71C0: AC4F5C86D027EB782CDD5689AFBDA7A2AD77751E876CB595E8F7B195E1C97831A6A8EC03FD5F815D95489C0DEC852D72 X-C1DE0DAB: 0D63561A33F958A50F3159966895B5D9C370CA312FD4CDA99E6C92CDDDD96D55D59269BC5F550898D99A6476B3ADF6B47008B74DF8BB9EF7333BD3B22AA88B938A852937E12ACA7502E6951B79FF9A3F410CA545F18667F91A7EA1CDA0B5A7A0 X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D34AC6E62257D6CD1C95A6066687E4E8768823C91F0DEFC90F2544F3EC73E40B99B8681D8DEB56CBDF31D7E09C32AA3244CF7F45BA70910E0ADDB3BCA69494097EC55E75C8D0ED9F6EE729B2BEF169E0186 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojq8JA+pXcDunkPNLWHefwWw== X-Mailru-Sender: 689FA8AB762F73936BC43F508A0638224BFFC89BB662031B69328A79646113213841015FED1DE5223CC9A89AB576DD93FB559BB5D741EB963CF37A108A312F5C27E8A8C3839CE0E267EA787935ED9F1B X-Mras: Ok Subject: Re: [Tarantool-patches] [PATCH v21 6/6] test: add box.lib 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: Vladislav Shpilevoy via Tarantool-patches Reply-To: Vladislav Shpilevoy Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" Thanks for the fixes! Please, apply this diff: ==================== diff --git a/test/box/cfunc4.c b/test/box/cfunc4.c index a03a23026..0cf6fd8fa 100644 --- a/test/box/cfunc4.c +++ b/test/box/cfunc4.c @@ -1,4 +1,4 @@ -#include +#include "msgpuck.h" #include "module.h" /* diff --git a/test/box/lib.result b/test/box/lib.result index 5067e9b36..2a89e78d1 100644 --- a/test/box/lib.result +++ b/test/box/lib.result @@ -348,9 +348,6 @@ fio.symlink(cfunc3_path, cfunc_path) box.schema.func.create('cfunc.cfunc_add', {language = "C"}) | --- | ... -box.schema.user.grant('guest', 'execute', 'function', 'cfunc.cfunc_add') - | --- - | ... box.func['cfunc.cfunc_add']:call({1, 2}) | --- | - 3 diff --git a/test/box/lib.test.lua b/test/box/lib.test.lua index 93cea90b6..076a43389 100644 --- a/test/box/lib.test.lua +++ b/test/box/lib.test.lua @@ -136,7 +136,6 @@ _ = pcall(fio.unlink(cfunc_path)) -- appear in box.lib hash. fio.symlink(cfunc3_path, cfunc_path) box.schema.func.create('cfunc.cfunc_add', {language = "C"}) -box.schema.user.grant('guest', 'execute', 'function', 'cfunc.cfunc_add') box.func['cfunc.cfunc_add']:call({1, 2}) -- Now we have 2 refs for low level module (when function