diff --git a/tests/zfs-tests/cmd/mmapwrite.c b/tests/zfs-tests/cmd/mmapwrite.c index 0a57daff5eae..20a50085a227 100644 --- a/tests/zfs-tests/cmd/mmapwrite.c +++ b/tests/zfs-tests/cmd/mmapwrite.c @@ -82,6 +82,10 @@ normal_writer(void *filename) break; } } + + if (close(fd) != 0) + err(1, "failed to close file"); + return (NULL); }