summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorPankaj <pankaj.s01@samsung.com>2015-11-06 06:13:00 +0000
committerStef Walter <stefw@redhat.com>2015-11-09 09:41:57 +0100
commit4e22ebfda7b51ec978eacf0c3653bb534de97fe3 (patch)
treefb654e8652d86f6e3f73ddaec301fd8a3ffe844a /common
parenta512a01e4c2700a6454d024150aa222f64885d59 (diff)
common: Fix in test-code for file descriptor validity check
https://bugs.freedesktop.org/show_bug.cgi?id=92843
Diffstat (limited to 'common')
-rw-r--r--common/test-compat.c1
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);