Skip to content

Update memory leak test to include add_listener#57

Open
bghgary wants to merge 1 commit intomicrosoft:masterfrom
bghgary:update-memleak-test
Open

Update memory leak test to include add_listener#57
bghgary wants to merge 1 commit intomicrosoft:masterfrom
bghgary:update-memleak-test

Conversation

@bghgary
Copy link
Contributor

@bghgary bghgary commented Feb 26, 2026

No description provided.

Copilot AI review requested due to automatic review settings February 26, 2026 22:49
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enhances the existing memory leak test for cancellation::none() by adding explicit coverage of the add_listener method. The test verifies that calling add_listener on the none() singleton (which is backed by a no_destroy wrapper) does not trigger any heap allocations that would be reported as leaks.

Changes:

  • Added test code to exercise the add_listener early-out path on cancellation::none()
  • Updated comments to document the additional test coverage

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

3 participants