--- perl/trunk/test/statfs.t 2004/11/11 14:44:15 4 +++ perl-llin/test/statfs.t 2006/01/02 22:38:50 27 @@ -3,14 +3,14 @@ use Test::More; require 'syscall.ph'; # for SYS_statfs plan tests => 7; -my ($statfs_data) = " " x 10; +my ($statfs_data) = 0x00 x 8 x 16; my ($tmp) = $_point; ok(!syscall(&SYS_statfs,$tmp,$statfs_data),"statfs"); # FIXME: this is soooooo linux-centric. perhaps parse the output of /bin/df? -my @list = unpack("LSSL8",$statfs_data); +my @list = unpack("L!7L2L!7",$statfs_data); +diag "statfs: ",join(', ', @list); shift(@list); is(shift(@list),4096,"block size"); -shift(@list); is(shift(@list),1000000,"blocks"); is(shift(@list),500000,"blocks free"); shift(@list);