01.t revision 271295
10Sstevel@tonic-gate#!/bin/sh 20Sstevel@tonic-gate# $FreeBSD: head/tools/regression/pjdfstest/tests/mkfifo/01.t 211474 2010-08-18 22:06:43Z pjd $ 30Sstevel@tonic-gate 40Sstevel@tonic-gatedesc="mkfifo returns ENOTDIR if a component of the path prefix is not a directory" 50Sstevel@tonic-gate 60Sstevel@tonic-gatedir=`dirname $0` 70Sstevel@tonic-gate. ${dir}/../misc.sh 80Sstevel@tonic-gate 90Sstevel@tonic-gateecho "1..17" 100Sstevel@tonic-gate 110Sstevel@tonic-gaten0=`namegen` 120Sstevel@tonic-gaten1=`namegen` 130Sstevel@tonic-gate 140Sstevel@tonic-gateexpect 0 mkdir ${n0} 0755 150Sstevel@tonic-gatefor type in regular fifo block char socket; do 160Sstevel@tonic-gate create_file ${type} ${n0}/${n1} 170Sstevel@tonic-gate expect ENOTDIR mkfifo ${n0}/${n1}/test 0644 180Sstevel@tonic-gate expect 0 unlink ${n0}/${n1} 190Sstevel@tonic-gatedone 200Sstevel@tonic-gateexpect 0 rmdir ${n0} 210Sstevel@tonic-gate