Skip to content

Commit 859749f

Browse files
Vilas Bhatandroid-build-merge-worker-robot
authored andcommitted
Merge "libbinder: Remove hardcoded PAGE_SIZE usage in binderLibTest" into main am: ae4eccc am: 7ffb594
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2958970 Change-Id: I54a2acc898459e786935e967f3a1746aa04f9074 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2 parents 098f685 + 7ffb594 commit 859749f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

libs/binder/tests/binderLibTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ MATCHER_P(StatusEq, expected, (negation ? "not " : "") + statusToString(expected
7070
}
7171

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

0 commit comments

Comments
 (0)