diff options
| author | 2024-02-12 21:47:15 +0000 | |
|---|---|---|
| committer | 2024-02-13 20:52:34 +0000 | |
| commit | 04e28c74c17fc8b74b79758e4ce6509bbaccf94c (patch) | |
| tree | d86a2d77fbe5b2db1a7d3bb5f9894f2a66bc5691 /libs | |
| parent | a1283449a9764180371c5cd2994d6c6bf874618e (diff) | |
libbinder: Remove hardcoded PAGE_SIZE usage in binderLibTest
Bug: 325083392
Test: atest binderLibTest
Change-Id: I19530353ee3455573a824d42c146b6e4340f2358
Diffstat (limited to 'libs')
| -rw-r--r-- | libs/binder/tests/binderLibTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/binder/tests/binderLibTest.cpp b/libs/binder/tests/binderLibTest.cpp index cb1a1ee443..0ee96e7317 100644 --- a/libs/binder/tests/binderLibTest.cpp +++ b/libs/binder/tests/binderLibTest.cpp @@ -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"; |