From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp54.i.mail.ru (smtp54.i.mail.ru [217.69.128.34]) (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 76350469719 for ; Wed, 14 Oct 2020 20:04:35 +0300 (MSK) From: Sergey Kaplun Date: Wed, 14 Oct 2020 20:03:58 +0300 Message-Id: In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH 1/2] test: force enable assert checks in release build 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 This patch fixes the regression introduced in scope of 5a61e1ab54b5c66bfebd836db1ac47996611e065 ('misc: add C and Lua API for platform metrics'). As a result of the patch release build was failed according to -Werror compiler flag and unused variables that used only for assertions checks. Force #undef NDEBUG directive leaves asserts on and allows not disable newly added tests for release build. Follows up tarantool/tarantool#5187 --- test/misclib-getmetrics-capi/testgetmetrics.c | 1 + 1 file changed, 1 insertion(+) diff --git a/test/misclib-getmetrics-capi/testgetmetrics.c b/test/misclib-getmetrics-capi/testgetmetrics.c index 8844b17..3b6f599 100644 --- a/test/misclib-getmetrics-capi/testgetmetrics.c +++ b/test/misclib-getmetrics-capi/testgetmetrics.c @@ -4,6 +4,7 @@ #include +#undef NDEBUG #include static int base(lua_State *L) -- 2.28.0