From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp60.i.mail.ru (smtp60.i.mail.ru [217.69.128.40]) (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 B20FF469719 for ; Wed, 30 Sep 2020 01:41:45 +0300 (MSK) From: Vladislav Shpilevoy References: <12d3cc3577e45946a82c8d23b69508a4c5653346.1600862684.git.imun@tarantool.org> Message-ID: <9f25b850-0c4e-f3c4-7762-22065ebfbc48@tarantool.org> Date: Wed, 30 Sep 2020 00:41:43 +0200 MIME-Version: 1.0 In-Reply-To: <12d3cc3577e45946a82c8d23b69508a4c5653346.1600862684.git.imun@tarantool.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Tarantool-patches] [PATCH v2 1/2] fiber: introduce a callback for fibers switch-over List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Igor Munkin , Sergey Ostanevich Cc: tarantool-patches@dev.tarantool.org Hi! Thanks for the patch! > diff --git a/test/unit/CMakeLists.txt b/test/unit/CMakeLists.txt > index 419477748..aace8cf50 100644 > --- a/test/unit/CMakeLists.txt > +++ b/test/unit/CMakeLists.txt > @@ -50,7 +50,7 @@ add_executable(bitset_index.test bitset_index.c) > target_link_libraries(bitset_index.test bitset) > add_executable(base64.test base64.c) > target_link_libraries(base64.test misc unit) > -add_executable(uuid.test uuid.c) > +add_executable(uuid.test uuid.c core_test_utils.c) To make lib/core more self-sufficient we could make cord_on_yield inlined in fiber.h under a macros like LIBCORE_USE_DEFAULT_ON_YIELD. Which would be set by default to 1, but to 0 in the executable file. Could help not to change the test binaries, and whatever else depends on lib/core, but does not care about Lua. I do not insist, but I will do that myself if someday I will need to write a new unit test (raft, for example).