Pádraig Brady <[email protected]> writes:

>>> This is obviously related to the 'stdbuf' program. But there are surely 
>>> other
>>> stdbuf tests, that don't fail?? What do they do differently?
>> tests/misc/stdbuf.sh works because it's running ASAN instrumented
>> binaries in the coreutils build,
>> but when libstdbuf.so is built against ASAN but then tries to run non ASAN 
>> instrumented binaries
>> you get a link error.
>> The fix would be to do something like:
>>      stdbuf -oL $SHELL -c : || skip_ ...
>> Alternatively we might exclude libstdbuf.so from sanitizers.
> I'm going with the attached change which simplifies things somewhat.

Thanks to you both. ASAN was not top of mind when I wrote that test. I
should probably get in the habit of using it no matter what, since it
can cause tests to fail in unexpected ways.

Collin

Reply via email to