From 04e28c74c17fc8b74b79758e4ce6509bbaccf94c Mon Sep 17 00:00:00 2001 From: Vilas Bhat Date: Mon, 12 Feb 2024 21:47:15 +0000 Subject: libbinder: Remove hardcoded PAGE_SIZE usage in binderLibTest Bug: 325083392 Test: atest binderLibTest Change-Id: I19530353ee3455573a824d42c146b6e4340f2358 --- libs/binder/tests/binderLibTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs') 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"; -- cgit v1.2.3-59-g8ed1b