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

Verify RegisterProfilerManager doesn't overwrite an existing registration #1837

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

xdje42
Copy link
Contributor

@xdje42 xdje42 commented Aug 8, 2024

Tested:
Add a second registration to test/profiler_manager_test.cc and verify the test crashes as expected.

…tion

Tested:
Add a second registration to test/profiler_manager_test.cc and
verify the test crashes as expected.
@xdje42 xdje42 marked this pull request as ready for review August 8, 2024 21:46
@dmah42
Copy link
Member

dmah42 commented Aug 9, 2024

i don't see the test in the PR

@xdje42
Copy link
Contributor Author

xdje42 commented Aug 9, 2024

Yeah, I wasn't sure how to write a crash test. Is there an existing example?

@dmah42
Copy link
Member

dmah42 commented Aug 12, 2024

it would be a standard googletest death test (https://github.com/google/googletest/blob/main/docs/advanced.md#death-tests) .. the test file must end with _gtest.cc so we run it against googletest correctly. but bear in mind we only assert-fatal in debug, not release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants