From: Michael G Schwern Date: Wed, 8 Nov 2006 08:51:50 +0000 (-0500) Subject: Supress df warning in stat.t on OS X X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=822f7be5701ff678f484c099543fb1f80aa67f16;p=p5sagit%2Fp5-mst-13.2.git Supress df warning in stat.t on OS X Message-ID: <4551E0F6.20108@gmail.com> p4raw-id: //depot/perl@29234 --- diff --git a/t/op/stat.t b/t/op/stat.t index c3df450..cde2974 100755 --- a/t/op/stat.t +++ b/t/op/stat.t @@ -30,7 +30,7 @@ $Is_Rhapsody= $^O eq 'rhapsody'; $Is_Dosish = $Is_Dos || $Is_OS2 || $Is_MSWin32 || $Is_NetWare || $Is_Cygwin; -$Is_UFS = $Is_Darwin && (() = `df -t ufs .`) == 2; +$Is_UFS = $Is_Darwin && (() = `df -t ufs . 2>/dev/null`) == 2; my($DEV, $INO, $MODE, $NLINK, $UID, $GID, $RDEV, $SIZE, $ATIME, $MTIME, $CTIME, $BLKSIZE, $BLOCKS) = (0..12);