summaryrefslogtreecommitdiff
path: root/Source/UnitTests/Core/PageFaultTest.cpp
diff options
context:
space:
mode:
authorPokechu22 <pokechu022@gmail.com>2022-06-02 16:21:21 -0700
committerGitHub <noreply@github.com>2022-06-02 16:21:21 -0700
commit0fc1fb023f64ecbe49108e04d7d5f70755512da0 (patch)
tree52f81b6cff20c466b29983b611f9bfbfcc417c98 /Source/UnitTests/Core/PageFaultTest.cpp
parenta58bb2aa24af808115836bc4bec002bef5b7628e (diff)
parent6ffd938f98781b6bd2ddec0af4a514abc6d2cab7 (diff)
Merge pull request #10678 from Dentomologist/skip_pagefault_test_if_no_exception_handler
UnitTests: Skip PageFaultTest if exception handlers aren't supported
Diffstat (limited to 'Source/UnitTests/Core/PageFaultTest.cpp')
-rw-r--r--Source/UnitTests/Core/PageFaultTest.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/UnitTests/Core/PageFaultTest.cpp b/Source/UnitTests/Core/PageFaultTest.cpp
index 841ba54609..e340ca7646 100644
--- a/Source/UnitTests/Core/PageFaultTest.cpp
+++ b/Source/UnitTests/Core/PageFaultTest.cpp
@@ -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);