From 4e22ebfda7b51ec978eacf0c3653bb534de97fe3 Mon Sep 17 00:00:00 2001 From: Pankaj Date: Fri, 6 Nov 2015 06:13:00 +0000 Subject: common: Fix in test-code for file descriptor validity check https://bugs.freedesktop.org/show_bug.cgi?id=92843 --- common/test-compat.c | 1 + 1 file changed, 1 insertion(+) (limited to 'common') 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); -- cgit v1.1