summaryrefslogtreecommitdiffstats
path: root/tools/regression/fstest/tests/open/23.t
diff options
context:
space:
mode:
Diffstat (limited to 'tools/regression/fstest/tests/open/23.t')
-rw-r--r--tools/regression/fstest/tests/open/23.t6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/regression/fstest/tests/open/23.t b/tools/regression/fstest/tests/open/23.t
index ea6335f..b7eec4d 100644
--- a/tools/regression/fstest/tests/open/23.t
+++ b/tools/regression/fstest/tests/open/23.t
@@ -1,7 +1,7 @@
#!/bin/sh
# $FreeBSD$
-desc="open returns EINVAL when an attempt was made to open a descriptor with an illegal combination of O_RDONLY, O_WRONLY, and O_RDWR"
+desc="open may return EINVAL when an attempt was made to open a descriptor with an illegal combination of O_RDONLY, O_WRONLY, and O_RDWR"
dir=`dirname $0`
. ${dir}/../misc.sh
@@ -11,6 +11,6 @@ echo "1..4"
n0=`namegen`
expect 0 create ${n0} 0644
-expect EINVAL open ${n0} O_WRONLY,O_RDWR
-expect EINVAL open ${n0} O_RDONLY,O_WRONLY,O_RDWR
+expect "0|EINVAL" open ${n0} O_WRONLY,O_RDWR
+expect "0|EINVAL" open ${n0} O_RDONLY,O_WRONLY,O_RDWR
expect 0 unlink ${n0}
OpenPOWER on IntegriCloud