1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-12 06:41:13 +02:00

socket test should not throw unresolved outside of a test

* test-suite/tests/00-socket.test: don't throw unresolved outside of a
    test
This commit is contained in:
Michael Gran 2020-12-30 06:00:35 -08:00
parent c65154ac69
commit 91d4d31184

View file

@ -264,11 +264,12 @@
(force-output (current-output-port))
(force-output (current-error-port))
(if server-listening?
(when server-listening?
(let ((pid (primitive-fork-if-available)))
;; Spawn a server process.
(case pid
((-1) (throw 'unresolved))
((-1) ;; fork not available
#f)
((0) ;; the kid: serve two connections and exit
(let serve ((conn
(false-if-exception (accept server-socket)))