Skip to content

Commit 04e28c7

Browse files
author
Vilas Bhat
committed
libbinder: Remove hardcoded PAGE_SIZE usage in binderLibTest
Bug: 325083392 Test: atest binderLibTest Change-Id: I19530353ee3455573a824d42c146b6e4340f2358
1 parent a128344 commit 04e28c7

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)