aboutsummaryrefslogtreecommitdiff
path: root/tests/aio.test
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2021-02-27 08:41:19 +1000
committerSteve Bennett <steveb@workware.net.au>2021-02-27 08:49:13 +1000
commit64423a3bb7d2ac4eaa8bc7806fa2173181854347 (patch)
treef28f7955a9918c043f2e79a4eb55bc6438583dd8 /tests/aio.test
parenta716f26d6b2a8f79a92917e88589e3f1f86a89a8 (diff)
downloadjimtcl-64423a3bb7d2ac4eaa8bc7806fa2173181854347.zip
jimtcl-64423a3bb7d2ac4eaa8bc7806fa2173181854347.tar.gz
jimtcl-64423a3bb7d2ac4eaa8bc7806fa2173181854347.tar.bz2
aio: tests: bootstrap jimsh doesn't have posix open flags
Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'tests/aio.test')
-rw-r--r--tests/aio.test10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/aio.test b/tests/aio.test
index 12e41ab..a012518 100644
--- a/tests/aio.test
+++ b/tests/aio.test
@@ -2,7 +2,7 @@ source [file dirname [info script]]/testing.tcl
needs constraint jim
testCmdConstraints socket
-testConstraint unix [expr {$tcl_platform(platform) eq {unix}}]
+testConstraint posixaio [expr {$tcl_platform(platform) eq {unix} && !$tcl_platform(bootstrap)}]
# Create and open in binary mode for compatibility between Windows and Unix
set f [open testdata.in wb]
@@ -128,22 +128,22 @@ test aio-8.1 {filename} {
$f filename
} testdata.in
-test aio-9.1 {open: posix modes} -constraints unix -body {
+test aio-9.1 {open: posix modes} -constraints posixaio -body {
set in [open testdata.in RDONLY]
set buf [$in gets]
$in close
set buf
} -result {test-data}
-test aio-9.2 {open: posix modes, bad modes} -constraints unix -body {
+test aio-9.2 {open: posix modes, bad modes} -constraints posixaio -body {
open testdata.in {CREAT TRUNC}
} -returnCodes error -result {testdata.in: Invalid argument}
-test aio-9.3 {open: posix modes, bad modes} -constraints unix -body {
+test aio-9.3 {open: posix modes, bad modes} -constraints posixaio -body {
open testdata.in {WRONG TRUNC}
} -returnCodes error -result {bad access mode "WRONG": must be APPEND, BINARY, CREAT, EXCL, NOCTTY, RDONLY, RDWR, TRUNC, or WRONLY}
-test aio-9.4 {open: posix modes} -constraints unix -cleanup {
+test aio-9.4 {open: posix modes} -constraints posixaio -cleanup {
file delete testdata.out
} -body {
set out [open testdata.out {WRONLY CREAT TRUNC}]