mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 11:49:06 +00:00
UnitTests: Skip PageFaultTest if exception handlers are not supported
Page faults should only occur on architectures that support exception handlers, so skip the test on other architectures to avoid spurious test failures.
This commit is contained in:
parent
62601663e5
commit
6ffd938f98
3 changed files with 28 additions and 0 deletions
|
@ -61,6 +61,11 @@ 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;
|
||||
}
|
||||
EMM::InstallExceptionHandler();
|
||||
void* data = Common::AllocateMemoryPages(PAGE_GRAN);
|
||||
EXPECT_NE(data, nullptr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue