1
0
mirror of https://github.com/janet-lang/janet synced 2025-09-13 00:06:06 +00:00

Raise error if using ev/to-file on MinGW

This commit is contained in:
Michael Camilleri
2024-12-15 21:00:52 +09:00
parent 6ee05785d1
commit 1a24d4fc86
2 changed files with 16 additions and 13 deletions

View File

@@ -420,9 +420,13 @@
# Now do our telnet chat
(def bob (net/connect test-host test-port :stream))
(expect-read bob "Whats your name?\n")
(def fbob (ev/to-file bob))
(file/write fbob "bob")
(:close fbob)
(if (= :mingw (os/which))
(net/write bob "bob")
(do
(def fbob (ev/to-file bob))
(file/write fbob "bob")
(file/flush fbob)
(:close fbob)))
(expect-read bob "Welcome bob\n")
(def alice (net/connect test-host test-port))
(expect-read alice "Whats your name?\n")