[PATCH 2/3] gb: Add test case for SGSN->BSS RESET procedures

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

Jacob Erlbeck jerlbeck at sysmocom.de
Thu Oct 24 07:37:57 UTC 2013


On 10/24/2013 07:35 AM, Holger Hans Peter Freyther wrote:
> On Tue, Oct 22, 2013 at 12:22:40PM +0200, Jacob Erlbeck wrote:
>> +	setlinebuf(stdout);
> 
> out of curiosity, why is this needed?
> 

To have a sensible relation between stderr and stdout lines, e.g. when
calling something like:

  ./tests/gbproxy/gbproxy_test 2>&1 | less

or writing the output to a file. Since by default stderr is unbuffered
and stdout is (possibly) block buffered when not writing to tty. You'd
get chunks of stderr and stdout blobs in this case. See setlinebuf(3)
for details.

Jacob





More information about the OpenBSC mailing list