1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-06 21:20:33 +02:00

tests: Adjust to Guile 3.0.10+.

Guile 3.0.11 introduced a new implementation of (srfi srfi-34) with subtle
changes wrt. exceptionm handling.  This adjusts to these changes.

Changes in ‘tests/style.scm’ are due to the new output of (ice-9 pretty-print)
in 3.0.10.

* tests/file-systems.scm ("btrfs-store-subvolume-file-name (subvolid)"):
Specify the exception type.
* tests/services/file-sharing.scm ("transmission-password-hash, salt value too short")
("transmission-password-hash, salt value too long"): Likewise.
* tests/store.scm ("store-path-package-name #f"): Change to ‘test-error’
with #t as the exception type.
* tests/style.scm: Skip all the tests on Guile > 3.0.9.
* tests/toml.scm <top level>: Set ‘raise’ in (guix build toml).
("parse-toml: No key"): Use ‘test-error’ instead of ‘test-equal’.
("parse-toml: Assignment to non-table"): Likewise.
("parse-toml: Invalid assignment to implicit table"): Change exception type
to #t
("parse-toml: Assignment to statically defined array"): Likewise.

Change-Id: I54ea77f22d3e95f72dad90690631876e7f013054
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Signed-off-by: Rutherther <rutherther@ditigal.xyz>
This commit is contained in:
Ludovic Courtès
2026-01-03 22:15:15 +01:00
committed by Rutherther
parent 64acb4e65d
commit d118a89d62
5 changed files with 29 additions and 10 deletions

View File

@@ -18,6 +18,7 @@
(define-module (tests services file-sharing)
#:use-module (gnu services file-sharing)
#:use-module ((guix diagnostics) #:select (formatted-message?))
#:use-module (srfi srfi-64))
;;; Tests for the (gnu services file-sharing) module.
@@ -47,11 +48,13 @@
(transmission-password-hash "" "Cp.I5SWg"))
(test-error "transmission-password-hash, salt value too short"
formatted-message?
(transmission-password-hash
"transmission"
(make-string (- %transmission-salt-length 1) #\a)))
(test-error "transmission-password-hash, salt value too long"
formatted-message?
(transmission-password-hash
"transmission"
(make-string (+ %transmission-salt-length 1) #\a)))