Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ae4eccc2 authored by Vilas Bhat's avatar Vilas Bhat Committed by Gerrit Code Review
Browse files

Merge "libbinder: Remove hardcoded PAGE_SIZE usage in binderLibTest" into main

parents 3fe61418 04e28c74
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -70,7 +70,7 @@ MATCHER_P(StatusEq, expected, (negation ? "not " : "") + statusToString(expected
}

static ::testing::AssertionResult IsPageAligned(void *buf) {
    if (((unsigned long)buf & ((unsigned long)PAGE_SIZE - 1)) == 0)
    if (((unsigned long)buf & ((unsigned long)getpagesize() - 1)) == 0)
        return ::testing::AssertionSuccess();
    else
        return ::testing::AssertionFailure() << buf << " is not page aligned";