Skip to content

test(channel): port Go race chan_test NoRace synchronization tests#1258

Open
leno23 wants to merge 1 commit into
crossbeam-rs:masterfrom
leno23:port-golang-race-chan-norace-tests
Open

test(channel): port Go race chan_test NoRace synchronization tests#1258
leno23 wants to merge 1 commit into
crossbeam-rs:masterfrom
leno23:port-golang-race-chan-norace-tests

Conversation

@leno23
Copy link
Copy Markdown

@leno23 leno23 commented May 25, 2026

Summary

  • Port 18 TestNoRace* cases from Go's runtime/race/testdata/chan_test.go
  • Covers sync/async send/recv ordering, close/recv behavior, mutex-like channel usage, wait-group pattern, blocked sends, and zero-sized element channels
  • Skips TestRace* cases that require the Go race detector

Test plan

  • cargo test -p crossbeam-channel --test golang race_chan_test

Port the TestNoRace* cases from golang/src/runtime/race/testdata/chan_test.go
to validate channel synchronization semantics without a race detector.
@leno23 leno23 force-pushed the port-golang-race-chan-norace-tests branch from 38dd0ef to dca2299 Compare May 26, 2026 04:16
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