diff options
author | Vilas Bhat <vilasbhat@google.com> | 2024-02-14 00:50:07 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2024-02-14 00:50:07 +0000 |
commit | ae4eccc2ed6a9d49954f6d9a5d79d3f39446a321 (patch) | |
tree | 9d1aa62ae6a55b449185d6cad45bd704dc0f3c20 | |
parent | 3fe61418c1fe4b5342a2c66bdce21d3d25241cad (diff) | |
parent | 04e28c74c17fc8b74b79758e4ce6509bbaccf94c (diff) | |
download | native-ae4eccc2ed6a9d49954f6d9a5d79d3f39446a321.tar.gz |
Merge "libbinder: Remove hardcoded PAGE_SIZE usage in binderLibTest" into main
-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"; |