'zfs_create_010_neg', 'zfs_create_011_pos', 'zfs_create_012_pos',
'zfs_create_013_pos', 'zfs_create_014_pos']
-# DISABLED:
-# zfs_destroy_005_neg - busy mountpoint behavior
-# zfs_destroy_001_pos - https://github.com/zfsonlinux/zfs/issues/5635
[tests/functional/cli_root/zfs_destroy]
-tests = ['zfs_destroy_002_pos', 'zfs_destroy_003_pos',
- 'zfs_destroy_004_pos','zfs_destroy_006_neg', 'zfs_destroy_007_neg',
- 'zfs_destroy_008_pos','zfs_destroy_009_pos', 'zfs_destroy_010_pos',
- 'zfs_destroy_011_pos','zfs_destroy_012_pos', 'zfs_destroy_013_neg',
- 'zfs_destroy_014_pos','zfs_destroy_015_pos', 'zfs_destroy_016_pos']
+tests = ['zfs_destroy_001_pos', 'zfs_destroy_002_pos', 'zfs_destroy_003_pos',
+ 'zfs_destroy_004_pos', 'zfs_destroy_005_neg', 'zfs_destroy_006_neg',
+ 'zfs_destroy_007_neg', 'zfs_destroy_008_pos', 'zfs_destroy_009_pos',
+ 'zfs_destroy_010_pos', 'zfs_destroy_011_pos', 'zfs_destroy_012_pos',
+ 'zfs_destroy_013_neg', 'zfs_destroy_014_pos', 'zfs_destroy_015_pos',
+ 'zfs_destroy_016_pos']
# DISABLED:
# zfs_get_004_pos - https://github.com/zfsonlinux/zfs/issues/3484
#
# Create the clones for test environment and make the snapshot busy.
-# Then verify 'zfs destroy $snap' succeeds without '-f'.
#
-# Then verify the snapshot and clone are destroyed, but nothing else is.
+# For Linux verify 'zfs destroy $snap' fails due to the busy mount point. Then
+# verify the snapshot remains and the clone was destroyed, but nothing else is.
+#
+# Under illumos verify 'zfs destroy $snap' succeeds without '-f'. Then verify
+# the snapshot and clone are destroyed, but nothing else is.
#
mntpt=$(snapshot_mountpoint $FSSNAP)
for option in -R -rR ; do
setup_testenv clone
- log_must zfs destroy $option $FSSNAP
- check_dataset datasetexists $CTR $FS $VOL
- check_dataset datasetnonexists $FSSNAP $FSCLONE
+
+ if is_linux; then
+ log_mustnot zfs destroy $option $FSSNAP
+ check_dataset datasetexists $CTR $FS $VOL $FSSNAP
+ check_dataset datasetnonexists $FSCLONE
+ else
+ log_must zfs destroy $option $FSSNAP
+ check_dataset datasetexists $CTR $FS $VOL
+ check_dataset datasetnonexists $FSSNAP $FSCLONE
+ fi
done
log_must kill $pidlist