[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet-scheme] 192/324: tests/mq-stream: Recognise the 'input:regular-e
From: |
gnunet |
Subject: |
[gnunet-scheme] 192/324: tests/mq-stream: Recognise the 'input:regular-end-of-file' error. |
Date: |
Tue, 21 Sep 2021 13:23:52 +0200 |
This is an automated email from the git hooks/post-receive script.
maxime-devos pushed a commit to branch master
in repository gnunet-scheme.
commit 02ae2bd534927ddefc9cd0af86d25fed19ce6415
Author: Maxime Devos <maximedevos@telenet.be>
AuthorDate: Sat Aug 21 13:09:38 2021 +0200
tests/mq-stream: Recognise the 'input:regular-end-of-file' error.
This caused some backtraces, but no test failures.
* tests/mq-stream.scm
(connect/test): Ignore input:regular-end-of-file.
(test-connection): Close the port to make the backtraces happen
more consistently.
---
tests/mq-stream.scm | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/tests/mq-stream.scm b/tests/mq-stream.scm
index 9d8e56e..dc1e015 100644
--- a/tests/mq-stream.scm
+++ b/tests/mq-stream.scm
@@ -265,6 +265,11 @@
(define (connect/test config connected?)
(define (error-handler . error)
(match error
+ ;; The connection is closed by 'test-connection'.
+ ;; If 'test-connection' doesn't close the connection,
+ ;; then the GC would. In both cases, this error would
+ ;; happen.
+ (('input:regular-end-of-file) (values))
(('connection:connected) (signal-condition! connected?))))
(connect/fibers config "service" no-handlers error-handler
#:spawn call-with-new-thread))
@@ -280,6 +285,7 @@
(send-message! mq (bv-slice/read-write #vu8(0 4 0 0)))
(let ((client (car (accept server-sock))))
(assert (equal? #vu8(0 4 0 0) (get-bytevector-n client 4)))
+ (close-port client)
#t))
(define (yield-many)
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [gnunet-scheme] 171/324: util/struct: Define /time-absolute., (continued)
- [gnunet-scheme] 171/324: util/struct: Define /time-absolute., gnunet, 2021/09/21
- [gnunet-scheme] 168/324: README: Remove paragraph about avoiding callbacks., gnunet, 2021/09/21
- [gnunet-scheme] 175/324: mq/handler: Handle the case where no handler exists., gnunet, 2021/09/21
- [gnunet-scheme] 178/324: Makefile.am: Compile with more optimisations., gnunet, 2021/09/21
- [gnunet-scheme] 174/324: nse/struct: Add missing imports., gnunet, 2021/09/21
- [gnunet-scheme] 186/324: nse: Allow 'updated' to be absent., gnunet, 2021/09/21
- [gnunet-scheme] 166/324: guix: Use fixed version of guile., gnunet, 2021/09/21
- [gnunet-scheme] 176/324: tests/utils: New utilities for tests., gnunet, 2021/09/21
- [gnunet-scheme] 172/324: crypto/struct: Define /ecc-signature-purpose., gnunet, 2021/09/21
- [gnunet-scheme] 179/324: nse/struct: Document 'timestamp' field of estimates., gnunet, 2021/09/21
- [gnunet-scheme] 192/324: tests/mq-stream: Recognise the 'input:regular-end-of-file' error.,
gnunet <=
- [gnunet-scheme] 206/324: mq-impl/stream: Flush the output port regularily., gnunet, 2021/09/21
- [gnunet-scheme] 198/324: doc: Document dependencies and how to get the source code., gnunet, 2021/09/21
- [gnunet-scheme] 202/324: mq-impl/stream: Allow the write fiber to stop even if blocking., gnunet, 2021/09/21
- [gnunet-scheme] 205/324: tests/mq-stream: Unbreak SIGPIPE signal handler., gnunet, 2021/09/21
- [gnunet-scheme] 203/324: tests/mq-stream: Make tests less fragile., gnunet, 2021/09/21
- [gnunet-scheme] 193/324: mq-impl/stream: Eliminate condition variable., gnunet, 2021/09/21
- [gnunet-scheme] 207/324: hat-let: Allow (dotted) variable lists with <--., gnunet, 2021/09/21
- [gnunet-scheme] 211/324: doc: Correct typo (mesage -> message), gnunet, 2021/09/21
- [gnunet-scheme] 215/324: tests/mq-stream: Use 'message-handler' macro., gnunet, 2021/09/21
- [gnunet-scheme] 218/324: mq-impl/stream: Name the reader and writer thunks., gnunet, 2021/09/21