mirror of
https://github.com/janet-lang/janet
synced 2025-04-13 06:13:11 +00:00
Only raise IOCP error on readable, writable, or acceptable streams.
We may create streams whose sole purpose is to wrap a file descriptor and therefor don't need to be IOCP enabled / nonblocking.
This commit is contained in:
parent
2b01b780da
commit
ce36c4c0d6
@ -131,6 +131,12 @@
|
||||
(assert (= (os/perm-string 8r755) "rwxr-xr-x") "perm 8")
|
||||
(assert (= (os/perm-string 8r644) "rw-r--r--") "perm 9")
|
||||
|
||||
# Pipes
|
||||
(assert-no-error (os/pipe))
|
||||
(assert-no-error (os/pipe :RW))
|
||||
(assert-no-error (os/pipe :R))
|
||||
(assert-no-error (os/pipe :W))
|
||||
|
||||
# os/execute with environment variables
|
||||
# issue #636 - 7e2c433ab
|
||||
(assert (= 0 (os/execute [;run janet "-e" "(+ 1 2 3)"] :pe
|
||||
|
Loading…
x
Reference in New Issue
Block a user