Skip to content

Commit

Permalink
test: disable stdout output buffering for our tests
Browse files Browse the repository at this point in the history
Hook this into test_create_context() so all the test immediately use it.
  • Loading branch information
whot committed Feb 20, 2024
1 parent 5270a55 commit e7570bc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit e7570bc

Please sign in to comment.