2 use test::helper qw($_point $_loop $_real $_pidfile);
4 use Test::More tests => 3;
5 ok(!(scalar grep(/ on $_point /,`cat /proc/mounts`)),"already mounted");
6 ok(-f $_loop,"loopback exists");
12 `echo $$ >test/s/mounted.pid`;
13 exec("perl $_loop $_point");
16 select(undef, undef, undef, 0.5);
17 my ($success) = `cat /proc/mounts` =~ / $_point /;
18 ok($success,"mount succeeded");
19 system("rm -rf $_real");
21 kill('INT',`cat $_pidfile`);