# HG changeset patch # User Tassilo Philipp # Date 1716473145 -7200 # Node ID 64880e3f286ca734da399257f7ff4c0ee0718e2c # Parent 127b569978ccbbf83e16c975126e28a2a2b9c94b - test/thunk: disable output buffering (might not be able catch segfaults on stack without SA_ONSTACK, so print maximum for when handler isn't called) diff -r 127b569978cc -r 64880e3f286c test/thunk/Makefile.generic --- a/test/thunk/Makefile.generic Sun Mar 24 13:52:44 2024 +0100 +++ b/test/thunk/Makefile.generic Thu May 23 16:05:45 2024 +0200 @@ -1,4 +1,4 @@ -APP = thunk +APP = thunk${APP_SUFFIX} OBJS = test_thunk.o SRCTOP = ${VPATH}/../.. BLDTOP = ../.. diff -r 127b569978cc -r 64880e3f286c test/thunk/test_thunk.c --- a/test/thunk/test_thunk.c Sun Mar 24 13:52:44 2024 +0100 +++ b/test/thunk/test_thunk.c Thu May 23 16:05:45 2024 +0200 @@ -6,7 +6,7 @@ Description: License: - Copyright (c) 2011-2021 Daniel Adler , + Copyright (c) 2011-2024 Daniel Adler , Tassilo Philipp Permission to use, copy, modify, and distribute this software for any @@ -137,6 +137,9 @@ #if !defined(DC_WINDOWS) signal(SIGBUS, segv_handler); #endif + /* disable output buffering - might not be able catch segfaults on stack + without SA_ONSTACK, so print maximum for when handler isn't called */ + setvbuf(stdout, NULL, _IONBF, 0); #endif