]> git.proxmox.com Git - mirror_zfs.git/blobdiff - tests/zfs-tests/tests/functional/cli_root/zpool/zpool_003_pos.ksh
Update ZTS to work on FreeBSD
[mirror_zfs.git] / tests / zfs-tests / tests / functional / cli_root / zpool / zpool_003_pos.ksh
index 0f04f0c046de203199617e8f7772bea4208949f4..5b9adf609a7d52712798b2cd39453f3031a78ea8 100755 (executable)
@@ -65,6 +65,10 @@ if is_linux; then
        echo "core" >/proc/sys/kernel/core_pattern
        echo 0 >/proc/sys/kernel/core_uses_pid
        export ASAN_OPTIONS="abort_on_error=1:disable_coredump=0"
+elif is_freebsd; then
+       ulimit -c unlimited
+       log_must sysctl kern.corefile=$corepath/core.zpool
+       export ASAN_OPTIONS="abort_on_error=1:disable_coredump=0"
 fi
 
 ZFS_ABORT=1; export ZFS_ABORT