mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 03:40:34 +02:00
socket test should not throw unresolved outside of a test
* test-suite/tests/00-socket.test: don't throw at top level
This commit is contained in:
parent
54fe8e83d9
commit
cdcdd29e8e
1 changed files with 4 additions and 2 deletions
|
@ -360,7 +360,8 @@
|
|||
(let ((pid (primitive-fork-if-available)))
|
||||
;; Spawn a server process.
|
||||
(case pid
|
||||
((-1) (throw 'unresolved))
|
||||
((-1)
|
||||
#f)
|
||||
((0) ;; the kid: send MESSAGE and exit
|
||||
(exit
|
||||
(false-if-exception
|
||||
|
@ -458,7 +459,8 @@
|
|||
(let ((pid (primitive-fork-if-available)))
|
||||
;; Spawn a server process.
|
||||
(case pid
|
||||
((-1) (throw 'unresolved))
|
||||
((-1)
|
||||
#f)
|
||||
((0) ;; the kid: serve two connections and exit
|
||||
(let serve ((conn
|
||||
(false-if-exception (accept server-socket)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue