diff options
author | Maria Matejka <mq@ucw.cz> | 2022-03-09 10:30:03 +0100 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2022-03-09 10:30:42 +0100 |
commit | 9e60a1fbc3ef9ab93b414dcf451bbe741e2e8827 (patch) | |
tree | acf228f298ac25f90f304a5c428c1c82282f389a /sysdep/unix/alloc.c | |
parent | b90c9b164fedd44115c01fb2b07f71fb40ab3b77 (diff) |
Fixed resource initialization in unit tests
Diffstat (limited to 'sysdep/unix/alloc.c')
-rw-r--r-- | sysdep/unix/alloc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdep/unix/alloc.c b/sysdep/unix/alloc.c index f96c0fcf..755b5fa5 100644 --- a/sysdep/unix/alloc.c +++ b/sysdep/unix/alloc.c @@ -164,6 +164,8 @@ void resource_sys_init(void) { #ifdef HAVE_MMAP + ASSERT_DIE(global_free_pages.cnt == 0); + if (!(page_size = sysconf(_SC_PAGESIZE))) die("System page size must be non-zero"); |