test: disable stdout output buffering for our tests

Hook this into test_create_context() so all the test immediately use it.
master
Peter Hutterer 2024-02-19 15:07:52 +10:00
parent 5270a55324
commit e7570bcb78
1 changed files with 2 additions and 0 deletions

View File

@ -298,6 +298,8 @@ test_get_context(enum test_context_flags test_flags)
struct xkb_context *ctx; struct xkb_context *ctx;
char *path; char *path;
setbuf(stdout, NULL);
ctx_flags = XKB_CONTEXT_NO_DEFAULT_INCLUDES; ctx_flags = XKB_CONTEXT_NO_DEFAULT_INCLUDES;
if (test_flags & CONTEXT_ALLOW_ENVIRONMENT_NAMES) { if (test_flags & CONTEXT_ALLOW_ENVIRONMENT_NAMES) {
unsetenv("XKB_DEFAULT_RULES"); unsetenv("XKB_DEFAULT_RULES");