aboutsummaryrefslogtreecommitdiff
path: root/tests/unit_tests/mlocker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit_tests/mlocker.cpp')
-rw-r--r--tests/unit_tests/mlocker.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/unit_tests/mlocker.cpp b/tests/unit_tests/mlocker.cpp
index 93434baf0..c97dc2c1d 100644
--- a/tests/unit_tests/mlocker.cpp
+++ b/tests/unit_tests/mlocker.cpp
@@ -158,6 +158,7 @@ TEST(mlocker, cross_page)
TEST(mlocker, redundant)
{
const size_t page_size = epee::mlocker::get_page_size();
+ ASSERT_TRUE(page_size > 0);
const size_t base_pages = epee::mlocker::get_num_locked_pages();
const size_t base_objects = epee::mlocker::get_num_locked_objects();
std::unique_ptr<char[]> data{new char[2 * page_size]};