Skip to content

Port Golang select3.go Test#1206

Open
shota-tsuji wants to merge 3 commits intocrossbeam-rs:masterfrom
shota-tsuji:golang-test-select3
Open

Port Golang select3.go Test#1206
shota-tsuji wants to merge 3 commits intocrossbeam-rs:masterfrom
shota-tsuji:golang-test-select3

Conversation

@shota-tsuji
Copy link
Copy Markdown

Port of the select3.go test.

Part of #201

Some tests are omitted:

  • Empty select statements (they cause a compile error)
  • Receiving with the ok flag
  • Panic on select send to a closed channel (it blocks instead)

Copy link
Copy Markdown
Member

@taiki-e taiki-e left a comment

Choose a reason for hiding this comment

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

Thanks! Could you resolve CI failures?

As for Miri errors, I think it can be fixed by avoiding leak checks as follows.

#[test]
fn main() {
// https://github.com/rust-lang/miri/issues/1371
if option_env!("MIRI_LEAK_CHECK").is_some() {
return;
}

@taiki-e taiki-e added crossbeam-channel S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author labels Feb 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

crossbeam-channel S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author

Development

Successfully merging this pull request may close these issues.

2 participants