diff --git a/tests/zfs-tests/tests/functional/reservation/reservation_001_pos.sh b/tests/zfs-tests/tests/functional/reservation/reservation_001_pos.sh index d142fe0cc0..b72b8e4a38 100755 --- a/tests/zfs-tests/tests/functional/reservation/reservation_001_pos.sh +++ b/tests/zfs-tests/tests/functional/reservation/reservation_001_pos.sh @@ -54,7 +54,7 @@ verify_runnable "both" function cleanup { for obj in $OBJ_LIST; do - datasetexists $obj && log_must zfs destroy -f $obj + destroy_dataset $obj done }