xref: /openbsd/regress/sys/ffs/tests/open/17.t (revision 09467b48)
1#!/bin/sh
2# $FreeBSD: src/tools/regression/fstest/tests/open/17.t,v 1.1 2007/01/17 01:42:10 pjd Exp $
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
6n0=`namegen`
7
8expect 0 mkfifo ${n0} 0644
9expect ENXIO open ${n0} O_WRONLY,O_NONBLOCK
10expect 0 unlink ${n0}
11