This commit is contained in:
Vijay Kumar Banerjee
2019-07-18 14:26:26 +05:30
committed by Christian Mauderer
parent bc2ba9a9cd
commit b68ca55c96
7 changed files with 71 additions and 7 deletions

View File

@@ -35,6 +35,7 @@
#include <sys/time.h>
#include <sys/uio.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <assert.h>
#include <errno.h>
@@ -125,6 +126,9 @@ static void test_cdev(const char *path)
assert(rv == -1);
assert(errno == TEST_KQ_ERRNO);
rv = mmap(NULL, 1, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
assert(rv == 0);
rv = close(fd);
assert(rv == 0);