mirror of
https://github.com/jiangcuo/nix.git
synced 2026-02-01 17:14:10 +00:00
* refactor: move tests to the test dir * try fixing it * try fixing it * fix Redox and FreeBSD * document it
14 lines
212 B
Rust
14 lines
212 B
Rust
use nix::sys::statvfs::*;
|
|
use std::fs::File;
|
|
|
|
#[test]
|
|
fn statvfs_call() {
|
|
statvfs(&b"/"[..]).unwrap();
|
|
}
|
|
|
|
#[test]
|
|
fn fstatvfs_call() {
|
|
let root = File::open("/").unwrap();
|
|
fstatvfs(&root).unwrap();
|
|
}
|