From e676a196249b5e8d23c036548f189cad60d5cd2a Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Mon, 31 Oct 2016 21:16:37 +0000 Subject: Skip async_destroy_001_pos on 32-bit systems The async_destroy_001_pos test case currently hangs when testing on a 32-bit system. Conditionally skip this test case on 32-bit systems until the root cause is identified and resolved. Reviewed-by: Tom Caputi Reviewed-by: Tim Chase Signed-off-by: Brian Behlendorf Issue #5352 Issue #5347 --- tests/zfs-tests/include/libtest.shlib | 13 +++++++++++++ .../tests/functional/features/async_destroy/setup.ksh | 4 ++++ 2 files changed, 17 insertions(+) (limited to 'tests') diff --git a/tests/zfs-tests/include/libtest.shlib b/tests/zfs-tests/include/libtest.shlib index 1857cf91f..62f371c58 100644 --- a/tests/zfs-tests/include/libtest.shlib +++ b/tests/zfs-tests/include/libtest.shlib @@ -44,6 +44,19 @@ function is_linux fi } +# Determine if this is a 32-bit system +# +# Return 0 if platform is 32-bit, 1 if otherwise + +function is_32bit +{ + if [[ $(getconf LONG_BIT) == "32" ]]; then + return 0 + else + return 1 + fi +} + # Determine whether a dataset is mounted # # $1 dataset name diff --git a/tests/zfs-tests/tests/functional/features/async_destroy/setup.ksh b/tests/zfs-tests/tests/functional/features/async_destroy/setup.ksh index d275e063b..3decfbfe0 100755 --- a/tests/zfs-tests/tests/functional/features/async_destroy/setup.ksh +++ b/tests/zfs-tests/tests/functional/features/async_destroy/setup.ksh @@ -31,6 +31,10 @@ . $STF_SUITE/include/libtest.shlib +if is_32bit; then + log_unsupported "Test case fails on 32-bit systems" +fi + DISK=${DISKS%% *} default_setup $DISK -- cgit v1.2.3