Skip to content

tests: add CFRunLoop mode membership tests - #142

Open
DTW-Thalion wants to merge 1 commit into
gnustep:masterfrom
DTW-Thalion:tests-cfrunloop-modes
Open

tests: add CFRunLoop mode membership tests#142
DTW-Thalion wants to merge 1 commit into
gnustep:masterfrom
DTW-Thalion:tests-cfrunloop-modes

Conversation

@DTW-Thalion

Copy link
Copy Markdown
Contributor

Adds coverage for the CFRunLoop mode-membership surface, exercised on a fresh run loop without running it:

  • CFRunLoopGetCurrent / CFRunLoopGetMain return a run loop
  • CFRunLoopCopyCurrentMode is NULL when the loop is not running
  • CFRunLoopCopyAllModes returns a non-NULL array and lists a mode once a source is added to it
  • CFRunLoopAddSource/AddObserver/AddTimer, CFRunLoopContainsSource/ContainsObserver/ContainsTimer and CFRunLoopRemoveSource/RemoveObserver/RemoveTimer round-trip per mode
  • a source added through kCFRunLoopCommonModes is reported as contained in kCFRunLoopCommonModes, kCFRunLoopDefaultMode and a registered common mode

Verified against Apple CoreFoundation (21 assertions, no divergence).

@DTW-Thalion
DTW-Thalion force-pushed the tests-cfrunloop-modes branch from 6e2fd46 to 652b781 Compare July 24, 2026 15:22
@DTW-Thalion DTW-Thalion reopened this Jul 24, 2026
@DTW-Thalion DTW-Thalion reopened this Jul 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant