xref: /freebsd/contrib/pjdfstest/tests/open/17.t (revision 38d120bc13ac1de5b739b67b87016b9122149374)
1#!/bin/sh
2# $FreeBSD: head/tools/regression/pjdfstest/tests/open/17.t 211352 2010-08-15 21:24:17Z pjd $
3
4desc="open returns ENXIO when O_NONBLOCK is set, the named file is a fifo, O_WRONLY is set, and no process has the file open for reading"
5
6dir=`dirname $0`
7. ${dir}/../misc.sh
8
9echo "1..3"
10
11n0=`namegen`
12
13expect 0 mkfifo ${n0} 0644
14expect ENXIO open ${n0} O_WRONLY,O_NONBLOCK
15expect 0 unlink ${n0}
16