# DISABLED:
# zfs_destroy_001_pos - busy mountpoint behavior
-# zfs_destroy_004_pos - busy mountpoint behavior
# zfs_destroy_005_neg - busy mountpoint behavior
# zfs_destroy_008_pos - busy mountpoint behavior
# zfs_destroy_009_pos - busy mountpoint behavior
# zfs_destroy_012_pos - busy mountpoint behavior
# zfs_destroy_013_neg - busy mountpoint behavior
[tests/functional/cli_root/zfs_destroy]
-tests = ['zfs_destroy_002_pos', 'zfs_destroy_003_pos', 'zfs_destroy_006_neg',
- 'zfs_destroy_007_neg', 'zfs_destroy_014_pos', 'zfs_destroy_015_pos',
- 'zfs_destroy_016_pos']
+tests = ['zfs_destroy_002_pos', 'zfs_destroy_003_pos', 'zfs_destroy_004_pos',
+ 'zfs_destroy_006_neg', 'zfs_destroy_007_neg', 'zfs_destroy_014_pos',
+ 'zfs_destroy_015_pos', 'zfs_destroy_016_pos']
# DISABLED:
# zfs_get_004_pos - nested pools
cd $mntp
log_mustnot $ZFS destroy $fs
- log_must $ZFS destroy -f $fs
- datasetexists $fs && \
- log_fail "'zfs destroy -f' fails to destroy busy filesystem."
+ if is_linux; then
+ log_mustnot $ZFS destroy -f $fs
+ datasetnonexists $fs && \
+ log_fail "'zfs destroy -f' destroyed busy filesystem."
+ else
+ log_must $ZFS destroy -f $fs
+ datasetexists $fs && \
+ log_fail "'zfs destroy -f' fail to destroy busy filesystem."
+ fi
cd $olddir
done