08.t revision 210967
1210967Spjd#!/bin/sh 2210967Spjd# $FreeBSD: head/tools/regression/fstest/tests/mknod/08.t 210967 2010-08-06 20:51:39Z pjd $ 3210967Spjd 4210967Spjddesc="mknod returns EEXIST if the named file exists" 5210967Spjd 6210967Spjddir=`dirname $0` 7210967Spjd. ${dir}/../misc.sh 8210967Spjd 9210967Spjdecho "1..18" 10210967Spjd 11210967Spjdn0=`namegen` 12210967Spjd 13210967Spjdexpect 0 mkdir ${n0} 0755 14210967Spjdexpect EEXIST mknod ${n0} f 0644 0 0 15210967Spjdexpect 0 rmdir ${n0} 16210967Spjd 17210967Spjdexpect 0 create ${n0} 0644 18210967Spjdexpect EEXIST mknod ${n0} f 0644 0 0 19210967Spjdexpect 0 unlink ${n0} 20210967Spjd 21210967Spjdexpect 0 symlink test ${n0} 22210967Spjdexpect EEXIST mknod ${n0} f 0644 0 0 23210967Spjdexpect 0 unlink ${n0} 24210967Spjd 25210967Spjdexpect 0 mkfifo ${n0} 0644 26210967Spjdexpect EEXIST mknod ${n0} f 0644 0 0 27210967Spjdexpect 0 unlink ${n0} 28210967Spjd 29210967Spjdexpect 0 bind ${n0} 30210967Spjdexpect EEXIST mknod ${n0} f 0644 0 0 31210967Spjdexpect 0 unlink ${n0} 32210967Spjd 33210967Spjdexpect 0 mknod ${n0} f 0644 0 0 34210967Spjdexpect EEXIST mknod ${n0} f 0644 0 0 35210967Spjdexpect 0 unlink ${n0} 36