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 E3B6E5D3A3A; Tue, 28 Nov 2023 17:58:59 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org E3B6E5D3A3A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1701183540; bh=knrWtERLV312EfS68KT3M3f8xRU1CMkuh4emICSBUhw=; 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=vtfDhYvTEs8tPbmcE0jmCXPhYeRQ5XCIuMvROsMn5AvN6uBjYtGzZk8hGbwe/2pag 5QuXq4SAsSxbo4rH5Aslws9AR//LigXSYaQ30XGD14gRKxLo9VSw83YlZ2sGOsnw/u uKT633HQnGtMsamvRXfJEHxuKfK8FKdPAYcuZmQs= Received: from smtp34.i.mail.ru (smtp34.i.mail.ru [95.163.41.75]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 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 BD4655D3A3A for ; Tue, 28 Nov 2023 17:58:28 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org BD4655D3A3A Received: by smtp34.i.mail.ru with esmtpa (envelope-from ) id 1r7zXg-004VGe-0R; Tue, 28 Nov 2023 17:58:28 +0300 To: Maxim Kokryashkin , Sergey Kaplun Date: Tue, 28 Nov 2023 14:53:16 +0000 Message-Id: X-Mailer: git-send-email 2.39.2 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailru-Src: smtp X-4EC0790: 10 X-7564579A: EEAE043A70213CC8 X-77F55803: 4F1203BC0FB41BD9191BD113CEFD9C8A5CCE00E72427602DC40CDBE651E9C0681313CFAB8367EF908E2BE116634AD74DB21273BEB68C3E41CC1275E54569A95E27B353D0F0250F28EEE848E17894A636 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE745C0EDBD94D46193EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F7900637826327602763C04B8638F802B75D45FF36EB9D2243A4F8B5A6FCA7DBDB1FC311F39EFFDF887939037866D6147AF826D848316BB79E4D89FF16134CA539966A9B117882F4460429724CE54428C33FAD305F5C1EE8F4F765FCC908CD1B87A134A2A471835C12D1D9774AD6D5ED66289B52BA9C0B312567BB23117882F44604297287769387670735201E561CDFBCA1751F618001F51B5FD3F9D2E47CDBA5A96583BA9C0B312567BB2376E601842F6C81A19E625A9149C048EE140C956E756FBB7A3DBBCB839D0549ACD8FC6C240DEA76429C9F4D5AE37F343AA9539A8B242431040A6AB1C7CE11FEE3CE135D2742255B35040F9FF01DFDA4A8C4224003CC836476E2F48590F00D11D6E2021AF6380DFAD1A18204E546F3947C989FD0BDF65E50FB2E808ACE2090B5E1725E5C173C3A84C3C5EA940A35A165FF2DBA43225CD8A89F616AD31D0D18CD5C35872C767BF85DA2F004C90652538430E4A6367B16DE6309 X-C1DE0DAB: 0D63561A33F958A5BA94FF6C1F880A0BBD0C6543F236F6CAE391F107D99FCDC7F87CCE6106E1FC07E67D4AC08A07B9B0CF7CD7A0D5AA5F259C5DF10A05D560A950611B66E3DA6D700B0A020F03D25A092FFDA4F57982C5F4CB5012B2E24CD356 X-C8649E89: 1C3962B70DF3F0ADBF74143AD284FC7177DD89D51EBB7742424CF958EAFF5D571004E42C50DC4CA955A7F0CF078B5EC49A30900B95165D34B0359B88B232A0C6B3486EF6D391E75D462F7CB782007737A87A5F997806F3FE9C581EDB20306FC61D7E09C32AA3244C9952D54FE2F9978C48FC0A1EB94A3E62A95CA90A1D8AC565BAD658CF5C8AB4025DA084F8E80FEBD376A4ED3E9341DC2FCD72808BE417F3B9E0E7457915DAA85F X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojcqZ8kcsJfPEc73yrAv57hA== X-Mailru-Sender: 2FEBA92C8E508479FE7B9A1DF348D5315AFA72D76FC8D60673693EBB3F469C1493404BA5F9DF91C12326FE6F2A341ACE0FB9F97486540B4CD9E8847AB8CFED4D9ABF8A61C016C2CFB0DAF586E7D11B3E67EA787935ED9F1B X-Mras: Ok Subject: [Tarantool-patches] [PATCH luajit 1/2] test: disable buffering for the C test engine 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: Igor Munkin via Tarantool-patches Reply-To: Igor Munkin Cc: tarantool-patches@dev.tarantool.org Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" Our testing engine for the tests implemented in C introduced in scope of the commit a0483bd214f2bbc9d7e5fc95ebc0ae13e8d22bcc ("test: introduce module for C tests") lazily flushes the TAP-formatted report to the . This might lead to a mess in a report e.g. in case when the particular case forks a child (that inherits its ) prior to TAP header is yield to . Hence the patch disables buffering for before any part of the TAP-formatted report is printed. Follows up tarantool/tarantool#7900 Signed-off-by: Igor Munkin --- test/tarantool-c-tests/test.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/tarantool-c-tests/test.c b/test/tarantool-c-tests/test.c index 7907c12a..0a370cdd 100644 --- a/test/tarantool-c-tests/test.c +++ b/test/tarantool-c-tests/test.c @@ -228,6 +228,12 @@ static int test_run(const struct test_unit *test, size_t test_number, int _test_run_group(const char *group_name, const struct test_unit tests[], size_t n_tests, void *test_state) { + /* + * XXX: Disable buffering for stdout to not mess with the + * output in case there are forking tests in the group. + */ + setvbuf(stdout, NULL, _IONBF, 0); + test_start_comment(group_name); level++; -- 2.39.2