]> git.ipfire.org Git - thirdparty/coreutils.git/commit
tests: avoid false failures with LD_PRELOAD=libasan.so.2
authorPádraig Brady <P@draigBrady.com>
Thu, 25 Jun 2015 12:21:28 +0000 (13:21 +0100)
committerPádraig Brady <P@draigBrady.com>
Thu, 25 Jun 2015 12:41:24 +0000 (13:41 +0100)
commit1d82751e2ca03084db4cb06c0b4eaf73036082d8
tree04e6e03035b745632a22458a3351d5ea6337dc80
parent381b797784b050f4eafc0dd4b6f070f2d1465f98
tests: avoid false failures with LD_PRELOAD=libasan.so.2

The LD_PRELOAD checks by -fsanitize=address are overly strict:
https://groups.google.com/forum/#!topic/address-sanitizer/jEvOJgkDqQk
A workaround is to first export LD_PRELOAD=libasan.so.2
The tests below are adjusted so that workaround is not discarded.

* tests/cp/no-ctx.sh: Append to $LD_PRELOAD.
* tests/df/no-mtab-status.sh: Likewise.
* tests/df/skip-duplicates.sh: Likewise.
* tests/ls/getxattr-speedup.sh: Likewise.
* tests/rm/r-root.sh: Likewise.
* tests/cp/nfs-removal-race.sh: Likewise.  Also check that
LD_PRELOAD is effective to aid future maintainability
and avoid false failure if libasan.so.2 is not preloaded.
tests/cp/nfs-removal-race.sh
tests/cp/no-ctx.sh
tests/df/no-mtab-status.sh
tests/df/skip-duplicates.sh
tests/ls/getxattr-speedup.sh
tests/rm/r-root.sh