From 8419fb9920df5c614664d0dde7ad43a90467ac75 Mon Sep 17 00:00:00 2001 From: Steve Lau Date: Wed, 22 May 2024 20:31:15 +0800 Subject: [PATCH 1/2] test: remove test of inode count in test_statfs.rs --- test/sys/test_statfs.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/test/sys/test_statfs.rs b/test/sys/test_statfs.rs index 66b3f2ce96..8e3a10b9d2 100644 --- a/test/sys/test_statfs.rs +++ b/test/sys/test_statfs.rs @@ -44,7 +44,6 @@ fn check_statfs_strict(path: &str) { // The cast is not unnecessary on all platforms. #[allow(clippy::unnecessary_cast)] fn assert_fs_equals(fs: Statfs, vfs: Statvfs) { - assert_eq!(fs.files() as u64, vfs.files() as u64); assert_eq!(fs.blocks() as u64, vfs.blocks() as u64); assert_eq!(fs.block_size() as u64, vfs.fragment_size() as u64); } @@ -93,7 +92,6 @@ fn assert_fs_equals_strict(fs: Statfs, vfs: Statvfs) { assert_eq!(fs.files_free() as u64, vfs.files_free() as u64); assert_eq!(fs.blocks_free() as u64, vfs.blocks_free() as u64); assert_eq!(fs.blocks_available() as u64, vfs.blocks_available() as u64); - assert_eq!(fs.files() as u64, vfs.files() as u64); assert_eq!(fs.blocks() as u64, vfs.blocks() as u64); assert_eq!(fs.block_size() as u64, vfs.fragment_size() as u64); } From 8eea05b88bda016a905caf358fa3882f757b95ed Mon Sep 17 00:00:00 2001 From: Steve Lau Date: Wed, 22 May 2024 21:01:01 +0800 Subject: [PATCH 2/2] revert: bring the test in assert_fs_equals_strict back as it is ignored --- test/sys/test_statfs.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/test/sys/test_statfs.rs b/test/sys/test_statfs.rs index 8e3a10b9d2..ca7934e6ed 100644 --- a/test/sys/test_statfs.rs +++ b/test/sys/test_statfs.rs @@ -92,6 +92,7 @@ fn assert_fs_equals_strict(fs: Statfs, vfs: Statvfs) { assert_eq!(fs.files_free() as u64, vfs.files_free() as u64); assert_eq!(fs.blocks_free() as u64, vfs.blocks_free() as u64); assert_eq!(fs.blocks_available() as u64, vfs.blocks_available() as u64); + assert_eq!(fs.files() as u64, vfs.files() as u64); assert_eq!(fs.blocks() as u64, vfs.blocks() as u64); assert_eq!(fs.block_size() as u64, vfs.fragment_size() as u64); }