From 3b1e405f36945be7873490e2cf59cfa558317ad3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Thu, 28 Mar 2019 09:35:26 +0100 Subject: [PATCH] test-terminal-util: fix sigsegv when compiled without asserts I couldn't figure out what is going on here, because LTO inlines everything and then the backtrace reported a different spot. But when compiled with NDEBUG but no LTO, it's fairly obvious ;) C.f. #12008. --- src/test/test-terminal-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/test-terminal-util.c b/src/test/test-terminal-util.c index f063d1d560..96d92279fb 100644 --- a/src/test/test-terminal-util.c +++ b/src/test/test-terminal-util.c @@ -40,7 +40,7 @@ static void test_read_one_char(void) { log_info("/* %s */", __func__); - assert(fmkostemp_safe(name, "r+", &file) == 0); + assert_se(fmkostemp_safe(name, "r+", &file) == 0); assert_se(fputs("c\n", file) >= 0); rewind(file);