From e7570bcb78a48c0e3fb48087991a85af95943e98 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Mon, 19 Feb 2024 15:07:52 +1000 Subject: [PATCH] test: disable stdout output buffering for our tests Hook this into test_create_context() so all the test immediately use it. --- test/common.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/common.c b/test/common.c index 9529c74..16e96ef 100644 --- a/test/common.c +++ b/test/common.c @@ -298,6 +298,8 @@ test_get_context(enum test_context_flags test_flags) struct xkb_context *ctx; char *path; + setbuf(stdout, NULL); + ctx_flags = XKB_CONTEXT_NO_DEFAULT_INCLUDES; if (test_flags & CONTEXT_ALLOW_ENVIRONMENT_NAMES) { unsetenv("XKB_DEFAULT_RULES");