aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2016-10-31 21:16:37 +0000
committerBrian Behlendorf <[email protected]>2016-11-02 12:14:45 -0700
commite676a196249b5e8d23c036548f189cad60d5cd2a (patch)
tree0c2850d93b0ed8671db4725216962d6a92646a77
parent9edb36954a0d11ca867d49e23b6b3bd4d1d16c5d (diff)
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 <[email protected]> Reviewed-by: Tim Chase <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Issue #5352 Issue #5347
-rw-r--r--tests/zfs-tests/include/libtest.shlib13
-rwxr-xr-xtests/zfs-tests/tests/functional/features/async_destroy/setup.ksh4
2 files changed, 17 insertions, 0 deletions
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