diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/test-compat.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/test-compat.c b/common/test-compat.c index 3af33ac..e28698e 100644 --- a/common/test-compat.c +++ b/common/test-compat.c @@ -117,6 +117,7 @@ test_mmap (void) size_t size; char file[] = "emptyfileXXXXXX"; int fd = mkstemp (file); + assert (fd >= 0); close (fd); /* mmap on empty file should work */ map = p11_mmap_open (file, NULL, &data, &size); |