Merge pull request #12147 from Dentomologist/pagefaulttest_use_gtest_skip

PageFaultTest: Use GTEST_SKIP instead of early return
This commit is contained in:
JMC47 2023-08-29 17:38:31 -04:00 committed by GitHub
commit efa820763a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

View File

@ -68,10 +68,8 @@ static void ASAN_DISABLE perform_invalid_access(void* data)
TEST(PageFault, PageFault)
{
if (!EMM::IsExceptionHandlerSupported())
{
// TODO: Use GTEST_SKIP() instead when GTest is updated to 1.10+
return;
}
GTEST_SKIP() << "Skipping PageFault test because exception handler is unsupported.";
EMM::InstallExceptionHandler();
void* data = Common::AllocateMemoryPages(PAGE_GRAN);
EXPECT_NE(data, nullptr);