The Perl and Raku Conference 2025: Greenville, South Carolina - June 27-29 Learn more

use strict;
use Test::More ( 'tests' => 2 );
my $fs = Filesys::POSIX->new( Filesys::POSIX::Mem->new );
$fs->mkdir('foo');
my $inode = $fs->stat('foo');
throws_ok {
$fs->{'vfs'}->statfs( $inode, 'exact' => 1 );
}
qr/^Not mounted/, "Filesys::POSIX::VFS->statfs() complains when a non mountpoint inode is specified";