]> git.ipfire.org Git - thirdparty/util-linux.git/commit
tests: fix --unbuffered mode with ASAN
authorKarel Zak <kzak@redhat.com>
Tue, 27 Aug 2019 11:02:38 +0000 (13:02 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 27 Aug 2019 11:02:38 +0000 (13:02 +0200)
commitf612c4c674e8e07fc40644432d8147a05c62058e
tree1e19d6707da5618a4808c5b25b37b0dfd214fc9a
parentf7f25faae084eda078e038022377e88ee0883aa7
tests: fix --unbuffered mode with ASAN

Unfortunately, ASAN is pretty sensitive to LD_PRELOAD, but stdbuf from
coreutils is based on LD_PRELOAD. So, I have replaced stdbuf with
unbuffer (from expect pkg).

The another problem is "${args[@]}" "$@" which does not work as expected.

Well, this patch sucks. It would be nice to have things in the way
how it has been original expected by Patrick's patch, but ...

Signed-off-by: Karel Zak <kzak@redhat.com>
tests/functions.sh
tests/ts/libfdisk/mkpart-full
tests/ts/misc/swaplabel
tests/ts/rename/exit_codes