2 use test::helper qw($_real $_point);
7 ok(!(system("touch reg" )>>8),"create normal file");
8 ok(!(system("mknod chr c 2 3")>>8),"create chrdev");
9 ok(!(system("mknod blk b 2 3")>>8),"create blkdev");
10 ok(!(system("mknod fifo p" )>>8),"create fifo");
12 ok(-e "reg" ,"normal file exists");
13 ok(-e "chr" ,"chrdev exists");
14 ok(-e "blk" ,"blkdev exists");
15 ok(-e "fifo","fifo exists");
16 ok(-f "reg" ,"normal file is normal file");
17 ok(-c "chr" ,"chrdev is chrdev");
18 ok(-b "blk" ,"blkdev is blkdev");
19 ok(-p "fifo","fifo is fifo");
21 is($stat[6],3+(2<<8),"chrdev has right major,minor");
23 is($stat[6],3+(2<<8),"blkdev has right major,minor");
25 ok(-e "reg" ,"normal file exists");
26 ok(-e "chr" ,"chrdev exists");
27 ok(-e "blk" ,"blkdev exists");
28 ok(-e "fifo","fifo exists");
29 ok(-f "reg" ,"normal file is normal file");
30 ok(-c "chr" ,"chrdev is chrdev");
31 ok(-b "blk" ,"blkdev is blkdev");
32 ok(-p "fifo","fifo is fifo");
34 is($stat[6],3+(2<<8),"chrdev has right major,minor");
36 is($stat[6],3+(2<<8),"blkdev has right major,minor");
37 map { unlink } qw(reg chr blk fifo);