tests: Tweak installed tests to deal with ASAN
We need to disable readdir-rand there too. Closes: #622 Approved by: jlebon
This commit is contained in:
1 parent
47b4dd1b38
commit
359ea9b58f
2 files changed
+14
-2
No files matched your search
+4
-1
@@ -86,13 +86,16 @@ if test -n "${OT_TESTS_DEBUG:-}"; then
|
||||
set -x
|
||||
fi
|
||||
|
||||
# This is substituted by the build for installed tests
|
||||
BUILT_WITH_ASAN=""
|
||||
|
||||
if test -n "${OT_TESTS_VALGRIND:-}"; then
|
||||
CMD_PREFIX="env G_SLICE=always-malloc OSTREE_SUPPRESS_SYNCFS=1 valgrind -q --error-exitcode=1 --leak-check=full --num-callers=30 --suppressions=${test_srcdir}/glib.supp --suppressions=${test_srcdir}/ostree.supp"
|
||||
else
|
||||
# In some cases the LD_PRELOAD may cause obscure problems,
|
||||
# e.g. right now it breaks for me with -fsanitize=address, so
|
||||
# let's allow users to skip it.
|
||||
if test -z "${OT_SKIP_READDIR_RAND:-}"; then
|
||||
if test -z "${OT_SKIP_READDIR_RAND:-}" && test -z "${BUILT_WITH_ASAN:-}"; then
|
||||
CMD_PREFIX="env LD_PRELOAD=${test_builddir}/libreaddir-rand.so"
|
||||
else
|
||||
CMD_PREFIX=""
|
||||
|
||||
Reference in new issue
Block a user