mirror of
https://github.com/openharmony/third_party_rust_rustix.git
synced 2026-07-22 02:35:29 -04:00
4e2599b729
* 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.
12 lines
200 B
Rust
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());
|
|
}
|