From 3795049ce6020b278ec62e6bbb841937d6db1750 Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Sat, 7 Mar 2020 15:59:48 +0100 Subject: Actually run '00-repl-server.test'. This is a followup to ddcab06f20525d975503d8d9611e02021fb0dff1. Until now the tests would always be marked as unresolved because TMPDIR was removed before the client and server had been started. * test-suite/tests/00-repl-server.test (call-with-repl-server): Remove initial call to 'rmdir'. Add calls to 'delete-file' and 'rmdir' in the unwind handler. --- test-suite/tests/00-repl-server.test | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test-suite/tests/00-repl-server.test b/test-suite/tests/00-repl-server.test index ebc2cad11..8c5713f4a 100644 --- a/test-suite/tests/00-repl-server.test +++ b/test-suite/tests/00-repl-server.test @@ -43,7 +43,6 @@ socket connected to that server." (sockaddr (make-socket-address AF_UNIX (string-append tmpdir "/repl-server"))) (client-socket (socket AF_UNIX SOCK_STREAM 0))) (false-if-exception (delete-file (sockaddr:path sockaddr))) - (false-if-exception (rmdir tmpdir)) ;; The REPL server requires thread. The test requires fork. (unless (and (provided? 'threads) (provided? 'fork)) @@ -90,6 +89,8 @@ socket connected to that server." (lambda () (false-if-exception (close-port client-socket)) (false-if-exception (kill pid SIGTERM)) + (false-if-exception (delete-file (sockaddr:path sockaddr))) + (false-if-exception (rmdir tmpdir)) (sigaction SIGPIPE SIG_DFL))))))) (define-syntax-rule (with-repl-server client-socket body ...) -- cgit v1.2.3