Files
Dan Gohman 4e2599b729 Run the tests on Rust 1.48, and check compilation of tests and examples on more targets (#465)
* Fix the tests to run on 1.48.

This puts the benchmarks behind a `criterion` cfg, so add
`--cfg=criterion` to RUSTFLAGS when running cargo bench.

An MSRV of 1.48 enables us to support users such as async-io, which also
has an MSRV of 1.48.

* Add a rust-version field.

This prints a warning under Rust 1.48, but only when rustix is the
top-level build; when rustix is a dependency, it doesn't warn, so this
seems ok.
2022-12-01 11:42:09 -08:00

12 lines
200 B
Rust

use rustix::process::*;
#[test]
fn test_parent_process_death_signal() {
dbg!(parent_process_death_signal().unwrap());
}
#[test]
fn test_trace_status() {
dbg!(trace_status(None).unwrap());
}