1
0
mirror of https://github.com/janet-lang/janet synced 2024-10-18 16:05:47 +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:
Calvin Rose 2024-08-06 07:06:34 -05:00
parent 2b01b780da
commit ce36c4c0d6

View File

@ -131,6 +131,12 @@
(assert (= (os/perm-string 8r755) "rwxr-xr-x") "perm 8") (assert (= (os/perm-string 8r755) "rwxr-xr-x") "perm 8")
(assert (= (os/perm-string 8r644) "rw-r--r--") "perm 9") (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 # os/execute with environment variables
# issue #636 - 7e2c433ab # issue #636 - 7e2c433ab
(assert (= 0 (os/execute [;run janet "-e" "(+ 1 2 3)"] :pe (assert (= 0 (os/execute [;run janet "-e" "(+ 1 2 3)"] :pe