From 4c4872c0bd2d36ef7e87afa89cfe9d34722679bc Mon Sep 17 00:00:00 2001 From: Syam Sidhardhan Date: Tue, 8 Jan 2013 17:07:47 +0530 Subject: [PATCH] unit: Replace g_test_fail() with g_assert_not_reached() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit g_test_fail() is introduced in Glib v2.30 and we are using Glib v2.28 as the minimum requirement for the build. This patch resolves the compilation error that happen with Glib v2.28. Error log: CC unit/test-mgmt.o unit/test-mgmt.c: In function ‘check_actions’: unit/test-mgmt.c:100:2: error: implicit declaration of function ‘g_test_fail’ [-Werror=implicit-function-declaration] cc1: all warnings being treated as errors make[1]: *** [unit/test-mgmt.o] Error 1 make: *** [all] Error 2 --- unit/test-mgmt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unit/test-mgmt.c b/unit/test-mgmt.c index 2d1a5d66b..f9dcb007c 100644 --- a/unit/test-mgmt.c +++ b/unit/test-mgmt.c @@ -97,7 +97,7 @@ static void check_actions(struct context *context, } g_test_message("Command not handled\n"); - g_test_fail(); + g_assert_not_reached(); } static gboolean server_handler(GIOChannel *channel, GIOCondition cond, -- 2.47.3