open(2) returns EOPNOTSUPP when trying to open a socket.
This commit is contained in:
parent
ce2decb660
commit
6c4a79e1b1
17
tools/regression/fstest/tests/open/24.t
Normal file
17
tools/regression/fstest/tests/open/24.t
Normal file
@ -0,0 +1,17 @@
|
||||
#!/bin/sh
|
||||
# $FreeBSD$
|
||||
|
||||
desc="open returns EOPNOTSUPP when trying to open UNIX domain socket"
|
||||
|
||||
dir=`dirname $0`
|
||||
. ${dir}/../misc.sh
|
||||
|
||||
echo "1..5"
|
||||
|
||||
n0=`namegen`
|
||||
|
||||
expect 0 bind ${n0}
|
||||
expect "EOPNOTSUPP" open ${n0} O_RDONLY
|
||||
expect "EOPNOTSUPP" open ${n0} O_WRONLY
|
||||
expect "EOPNOTSUPP" open ${n0} O_RDWR
|
||||
expect 0 unlink ${n0}
|
Loading…
x
Reference in New Issue
Block a user