guix/gnu/packages/patches/guile-ssh-read-error.patch
Ludovic Courtès 0fb80f349d
gnu: guile-ssh: Fix test failure due to Guile 3.0.7's 'read-error'.
Reported by Marius Bakke.

* gnu/packages/patches/guile-ssh-read-error.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add it.
* gnu/packages/ssh.scm (guile-ssh)[source]: Use it.
(guile2.0-ssh)[source]: New field.
(guile2.2-ssh)[source]: New field.
2021-05-19 17:45:32 +02:00

18 lines
711 B
Diff

This patch adjusts to slightly different 'read-error' in Guile 3.0.6
compared to earlier versions:
https://github.com/artyom-poptsov/guile-ssh/issues/28
--- a/tests/dist.scm
+++ b/tests/dist.scm
@@ -183,8 +183,8 @@ Unbound variable: e"
rrepl-get-result))
(test-error-with-log/= "rrepl-get-result, unknown # object error"
- 'node-repl-error "Reader error: scm_lreadr: #<unknown port>:1:3: \
-Unknown # object: (#\\<): scheme@(guile-user)> \
+ 'node-repl-error "Reader error: #f: #<unknown port>:1:3: \
+Unknown # object: (\"#<\"): scheme@(guile-user)> \
$4 = #<session #<undefined>@#<undefined>:22 (disconnected) 453fff>"
(call-with-input-string
(string-append "scheme@(guile-user)> $4 = "