diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2026-01-03 22:15:15 +0100 |
|---|---|---|
| committer | Rutherther <rutherther@ditigal.xyz> | 2026-01-25 21:23:25 +0100 |
| commit | d118a89d62ef1e85199f90a1267e555b49d38ee8 (patch) | |
| tree | 8b88ea5d9977e05d8c37d1bd72f772575e22c446 /tests/services | |
| parent | 64acb4e65d32299e4547f6432bff1ffb74d27699 (diff) | |
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>
Diffstat (limited to 'tests/services')
| -rw-r--r-- | tests/services/file-sharing.scm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/services/file-sharing.scm b/tests/services/file-sharing.scm index 27bec57325f..76b4e5dc55a 100644 --- a/tests/services/file-sharing.scm +++ b/tests/services/file-sharing.scm @@ -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))) |
