aboutsummaryrefslogtreecommitdiff
path: root/sys/contrib/openzfs/tests/zfs-tests/include/default.cfg.in
diff options
context:
space:
mode:
authorMartin Matuska <mm@FreeBSD.org>2022-03-08 17:52:10 +0000
committerMartin Matuska <mm@FreeBSD.org>2022-03-08 17:53:02 +0000
commitc03c5b1c80914ec656fbee84539355d1fad68bf9 (patch)
tree804d8ffb7943c01f04a7dfa4e98965881bcbfc3c /sys/contrib/openzfs/tests/zfs-tests/include/default.cfg.in
parent5678114cd8b310bd6f0a5699f036fc5b18addd65 (diff)
parenta86e089415679cf1b98eb424a159bb36aa2c19e3 (diff)
downloadsrc-c03c5b1c80914ec656fbee84539355d1fad68bf9.tar.gz
src-c03c5b1c80914ec656fbee84539355d1fad68bf9.zip
zfs: merge openzfs/zfs@a86e08941 (master) into main
Notable upstream pull request merges: #9078: log xattr=sa create/remove/update to ZIL #11919: Cross-platform xattr user namespace compatibility #13014: Report dnodes with faulty bonuslen #13016: FreeBSD: Fix zvol_cdev_open locking #13019: spl: Don't check FreeBSD rwlocks for double initialization #13027: Fix clearing set-uid and set-gid bits on a file when replying a write #13031: Add enumerated vdev names to 'zpool iostat -v' and 'zpool list -v' #13074: Enable encrypted raw sending to pools with greater ashift #13076: Receive checks should allow unencrypted child datasets #13098: Avoid dirtying the final TXGs when exporting a pool #13172: Fix ENOSPC when unlinking multiple files from full pool Obtained from: OpenZFS OpenZFS commit: a86e089415679cf1b98eb424a159bb36aa2c19e3
Diffstat (limited to 'sys/contrib/openzfs/tests/zfs-tests/include/default.cfg.in')
-rw-r--r--sys/contrib/openzfs/tests/zfs-tests/include/default.cfg.in15
1 files changed, 15 insertions, 0 deletions
diff --git a/sys/contrib/openzfs/tests/zfs-tests/include/default.cfg.in b/sys/contrib/openzfs/tests/zfs-tests/include/default.cfg.in
index 1a9cc5a2bb62..cf382cfe994c 100644
--- a/sys/contrib/openzfs/tests/zfs-tests/include/default.cfg.in
+++ b/sys/contrib/openzfs/tests/zfs-tests/include/default.cfg.in
@@ -155,6 +155,21 @@ done
export MAX_PARTITIONS=8
+if [ "@ASAN_ENABLED@" = "yes" ]; then
+ export ASAN_OPTIONS=abort_on_error=true:halt_on_error=true:allocator_may_return_null=true:disable_coredump=false:detect_stack_use_after_return=true
+
+ # TODO
+ # disable memory leaks detection
+ # there are quite many of them and they are not as
+ # destructive to CLI programs as they are to daemons
+ export ASAN_OPTIONS="$ASAN_OPTIONS:detect_leaks=false"
+fi
+
+if [ "@UBSAN_ENABLED@" = "yes" ]; then
+ export UBSAN_OPTIONS=abort_on_error=true:halt_on_error=true:print_stacktrace=true
+fi
+
+
case $(uname -o) in
GNU/Linux)
unpack_opts="--sparse -xf"