We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3fe6141 + 04e28c7 commit ae4ecccCopy full SHA for ae4eccc
1 file changed
libs/binder/tests/binderLibTest.cpp
@@ -70,7 +70,7 @@ MATCHER_P(StatusEq, expected, (negation ? "not " : "") + statusToString(expected
70
}
71
72
static ::testing::AssertionResult IsPageAligned(void *buf) {
73
- if (((unsigned long)buf & ((unsigned long)PAGE_SIZE - 1)) == 0)
+ if (((unsigned long)buf & ((unsigned long)getpagesize() - 1)) == 0)
74
return ::testing::AssertionSuccess();
75
else
76
return ::testing::AssertionFailure() << buf << " is not page aligned";
0 commit comments