Skip to content

Commit

Permalink
Merge pull request #4298
Browse files Browse the repository at this point in the history
67666b1 unit_tests: disable mlocker tests on windows (no implementation) (moneromooo-monero)
  • Loading branch information
luigi1111 committed Sep 4, 2018
2 parents 6cc1ed8 + 67666b1 commit ca4e477
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/unit_tests/mlocker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@
#include "misc_log_ex.h"
#include "mlocker.h"

#if defined __GNUC__ && !defined _WIN32
#define HAVE_MLOCK 1
#endif

#ifdef HAVE_MLOCK

#define BASE(data) (char*)(((uintptr_t)(data.get() + page_size - 1)) / page_size * page_size)

TEST(mlocker, distinct_1)
Expand Down Expand Up @@ -184,3 +190,5 @@ TEST(mlocker, mlocked)
ASSERT_EQ(epee::mlocker::get_num_locked_pages(), base_pages + 0);
ASSERT_EQ(epee::mlocker::get_num_locked_objects(), base_objects + 0);
}

#endif

0 comments on commit ca4e477

Please sign in to comment.