1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
#[path = "../src/future.rs"]
#[allow(warnings)]
mod future;
use tokio_test::assert_ok;
use tokio_uring::fs;
use tempfile::tempdir;
/*#[test]
fn basic_create_dir() {
tokio_uring::start(async {
let base_dir = tempdir().unwrap();
let new_dir = base_dir.path().join("foo");
let new_dir_2 = new_dir.clone();
assert_ok!(fs::create_dir(new_dir).await);
assert!(new_dir_2.is_dir());
});
}*/
#[test]
#[ignore]
fn basic_remove_dir() {
tokio_uring::start(async {
let temp_dir = tempfile::TempDir::new().unwrap();
tokio_uring::fs::remove_dir(temp_dir.path()).await.unwrap();
assert!(std::fs::metadata(temp_dir.path()).is_err());
});
}
|