diff options
author | Pankaj <pankaj.s01@samsung.com> | 2015-11-06 06:13:00 +0000 |
---|---|---|
committer | Stef Walter <stefw@redhat.com> | 2015-11-09 09:41:57 +0100 |
commit | 4e22ebfda7b51ec978eacf0c3653bb534de97fe3 (patch) | |
tree | fb654e8652d86f6e3f73ddaec301fd8a3ffe844a | |
parent | a512a01e4c2700a6454d024150aa222f64885d59 (diff) |
common: Fix in test-code for file descriptor validity check
https://bugs.freedesktop.org/show_bug.cgi?id=92843
-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); |