From 532009d1ccf16b87859dd58884a82512e8eba937 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 30 Jun 2009 15:10:31 +0100 Subject: [PATCH] Change statvfs test so it doesn't depend on device size. Current statvfs test depended on a lot of filesystem details which can change if the CHS of the underlying block device changes (eg. with the switch from IDE -> virtio). These are not really necessary to test the call, so instead just check for filesystem features. --- src/generator.ml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/generator.ml b/src/generator.ml index 242d292..cbe8ca7 100755 --- a/src/generator.ml +++ b/src/generator.ml @@ -1499,8 +1499,7 @@ This is the same as the C system call."); ("statvfs", (RStatVFS "statbuf", [String "path"]), 54, [], [InitBasicFS, Always, TestOutputStruct ( - [["statvfs"; "/"]], [CompareWithInt ("bfree", 487702); - CompareWithInt ("blocks", 490020); + [["statvfs"; "/"]], [CompareWithInt ("namemax", 255); CompareWithInt ("bsize", 1024)])], "get file system statistics", "\ -- 1.8.3.1