Skip to content

Add OpenBSD CI jobs#84

Merged
hniksic merged 5 commits intomasterfrom
more-ci
Mar 28, 2026
Merged

Add OpenBSD CI jobs#84
hniksic merged 5 commits intomasterfrom
more-ci

Conversation

@hniksic
Copy link
Copy Markdown
Owner

@hniksic hniksic commented Mar 28, 2026

No description provided.

hniksic added 4 commits March 28, 2026 15:59
NetBSD is excluded because it fails to deliver signals in CI -
reproduced by the following test failing on the last assert, `expected
signal 9, got ExitStatus(unix_wait_status(0))`.

```rust
fn stdlib_kill_vs_terminate() {
    use std::os::unix::process::ExitStatusExt;
    use std::process::Command;

    let mut child = Command::new("sleep").arg("1000").spawn().unwrap();
    let pid = child.id();
    unsafe { libc::kill(pid as libc::pid_t, libc::SIGTERM) };
    let status = child.wait().unwrap();
    assert!(
        status.signal() == Some(libc::SIGTERM),
        "stdlib SIGTERM: expected signal {}, got {:?}",
        libc::SIGTERM,
        status
    );

    let mut child = Command::new("sleep").arg("1000").spawn().unwrap();
    let pid = child.id();
    unsafe { libc::kill(pid as libc::pid_t, libc::SIGKILL) };
    let status = child.wait().unwrap();
    assert!(
        status.signal() == Some(libc::SIGKILL),
        "stdlib SIGKILL: expected signal {}, got {:?}",
        libc::SIGKILL,
        status
    );
}
```
@hniksic hniksic changed the title Add NetBSD and OpenBSD CI jobs Add OpenBSD CI jobs Mar 28, 2026
We want tests to fail, not hang.
@hniksic hniksic merged commit 8cf6585 into master Mar 28, 2026
10 checks passed
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