Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnitTests: Skip PageFaultTest if exception handlers aren't supported #10678

Conversation

Dentomologist
Copy link
Contributor

The nightly generic builder has been failing on the PageFaultTest because the generic build doesn't install an exception handler. This PR adds a function to see if the build supports exception handlers and skips the test if it doesn't.

Questions/Comments:

  • Are there any situations where not installing an exception handler would be a problem for the generic build, and thus having this test fail is necessary?
  • Skipping the test this way shows that the test passed; it would be better to use GTEST_SKIP() but that requires bumping to GTest 1.10 which would be a separate PR.

Page faults should only occur on architectures that support exception
handlers, so skip the test on other architectures to avoid spurious test
failures.
@Dentomologist Dentomologist marked this pull request as ready for review May 22, 2022 07:38
@shuffle2
Copy link
Contributor

shuffle2 commented Jun 2, 2022

_M_GENERIC will never have arch-specific code (i.e. a JIT), and therefor never needs to use MemTools (nothing relies on handling access violations).

lgtm, please merge to fix the bot!

also yes, please make another PR to update GTest to $latest (or, at least, see if it can be updated without trouble).

@Pokechu22 Pokechu22 merged commit 0fc1fb0 into dolphin-emu:master Jun 2, 2022
10 checks passed
@Dentomologist Dentomologist deleted the skip_pagefault_test_if_no_exception_handler branch June 3, 2022 02:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants