From 401b97cda89fa51baa974712ccf6a44d545770f8 Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Mon, 2 Jan 2006 22:38:50 +0000 Subject: [PATCH 1/1] convert output to diag, zero buffer (I hope) git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/fuse/perl-llin@27 6e4b0b00-1209-0410-87b2-b275959b5705 --- test/statfs.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/statfs.t b/test/statfs.t index 31e140f..7905b80 100644 --- a/test/statfs.t +++ b/test/statfs.t @@ -3,12 +3,12 @@ use test::helper qw($_real $_point); use Test::More; require 'syscall.ph'; # for SYS_statfs plan tests => 7; -my ($statfs_data) = " " x 16; +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("L!7L2L!7",$statfs_data); -print join(', ', @list)."\n"; +diag "statfs: ",join(', ', @list); shift(@list); is(shift(@list),4096,"block size"); is(shift(@list),1000000,"blocks"); -- 2.20.1