summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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