|
@@ -1302,6 +1302,7 @@ test_mmap(void)
|
|
|
/* make sure we can unlink. */
|
|
/* make sure we can unlink. */
|
|
|
test_assert(unlink(fname1) == 0);
|
|
test_assert(unlink(fname1) == 0);
|
|
|
test_streq(mapping->data, "Short file.");
|
|
test_streq(mapping->data, "Short file.");
|
|
|
|
|
+ tor_munmap_file(mapping);
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
/* Make sure that we fail to map a no-longer-existent file. */
|
|
/* Make sure that we fail to map a no-longer-existent file. */
|