Skip to content

Add unit test for psync_task_free refcount fix#380

Closed
lneely wants to merge 1 commit intomainfrom
testability-refactor
Closed

Add unit test for psync_task_free refcount fix#380
lneely wants to merge 1 commit intomainfrom
testability-refactor

Conversation

@lneely
Copy link
Copy Markdown
Owner

@lneely lneely commented Mar 10, 2026

Summary

  • Adds tests/unit-tests/test_ptask_free.c covering all 5 code paths of the psync_task_free refcount fix from Fix data race on task refcount in psync_task_free #377: single-owner free, last-ref destroy, non-last-ref decrement, READY task signaling, and lock-before-refcnt ordering
  • Adds compiled test binary to .gitignore

Test plan

  • All 5 unit tests in test_ptask_free.c pass
  • make succeeds with no errors or warnings

Smoke Check

Build: passed (make completed successfully)

🤖 Generated with Claude Code

Adds tests/unit-tests/test_ptask_free.c to verify all code paths of the
psync_task_free fix from #377: single-owner free, last-ref destroy,
non-last-ref decrement, READY task signaling, and lock-before-refcnt
ordering. All 5 tests pass. Also adds compiled binary to .gitignore.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@lneely lneely force-pushed the testability-refactor branch from 20baa60 to 3b41bb3 Compare March 10, 2026 18:19
@lneely
Copy link
Copy Markdown
Owner Author

lneely commented Mar 10, 2026

Closing — changes already incorporated into main via #379. Branch rebased; no diff remains.

@lneely lneely closed this Mar 10, 2026
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.

1 participant