diff options
Diffstat (limited to 'vendor/rustix/tests/io/procfs.rs')
-rw-r--r-- | vendor/rustix/tests/io/procfs.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/vendor/rustix/tests/io/procfs.rs b/vendor/rustix/tests/io/procfs.rs new file mode 100644 index 000000000..4c4256bd7 --- /dev/null +++ b/vendor/rustix/tests/io/procfs.rs @@ -0,0 +1,8 @@ +use io_lifetimes::raw::AsRawFilelike; + +#[test] +fn test_proc_self() { + // Verify that this API works at all + let fd = rustix::io::proc_self_fd().unwrap(); + assert_ne!(fd.as_raw_filelike(), 0); +} |