From c337c496b0b9797bbc73c1e517541a63d305acad Mon Sep 17 00:00:00 2001 From: ChristianVisintin Date: Sat, 28 Nov 2020 12:18:11 +0100 Subject: [PATCH] Fixed host tests --- src/host/mod.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/host/mod.rs b/src/host/mod.rs index 4d2b325..b67ed70 100644 --- a/src/host/mod.rs +++ b/src/host/mod.rs @@ -645,7 +645,9 @@ mod tests { let files: Vec = host.list_dir(); assert_eq!(files.len(), 1); // There should be 1 file now // Try to re-create directory - assert!(host.mkdir(PathBuf::from("test_dir").as_path()).is_err()) + assert!(host.mkdir(PathBuf::from("test_dir").as_path()).is_err()); + // Try abs path + assert!(host.mkdir_ex(PathBuf::from("/tmp/test_dir_123456789").as_path(), true).is_ok()); } #[test]