Skip to content

Conversation

@Sid9017
Copy link

@Sid9017 Sid9017 commented Aug 28, 2024

#231
Temporarily use a private variable _sigabrt to hold the value of status.signal() for comparison

#[cfg(unix)]
None => match status.signal() {
Some(libc::SIGABRT) => TestResult::TrFailed,
Some(_sigabrt) => TestResult::TrFailed,

Choose a reason for hiding this comment

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

This doesn't do what you want. It's a pattern, so it defines a new variable named _sigabrt. https://doc.rust-lang.org/beta/book/ch18-03-pattern-syntax.html

@Sid9017 Sid9017 closed this by deleting the head repository Feb 12, 2025
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.

2 participants