Skip to content

Commit ae4eccc

Browse files
Vilas BhatGerrit Code Review
authored andcommitted
Merge "libbinder: Remove hardcoded PAGE_SIZE usage in binderLibTest" into main
2 parents 3fe6141 + 04e28c7 commit ae4eccc

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)