summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2019-11-24 20:47:20 +0100
committerLudovic Courtès <ludo@gnu.org>2019-11-26 00:16:35 +0100
commit1d64afbdc0644a2be8bd2ad157085731e212ab74 (patch)
tree8a59a81abe4e957eb6e174e6211223924f0a53af /tests
parent5d297ca6760d62f1287c9d6f4729ce3352752df8 (diff)
tests: Avoid (catch 'srfi-34 …) form.
* tests/build-utils.scm ("wrap-script, raises condition"): Use 'guard' instead of "catch 'srfi-34".
Diffstat (limited to 'tests')
-rw-r--r--tests/build-utils.scm14
1 files changed, 6 insertions, 8 deletions
diff --git a/tests/build-utils.scm b/tests/build-utils.scm
index 61e6c44e632..ec442c267b1 100644
--- a/tests/build-utils.scm
+++ b/tests/build-utils.scm
@@ -235,13 +235,11 @@ print('hello world')"))
235 (lambda (port) 235 (lambda (port)
236 (format port "This is not a script"))) 236 (format port "This is not a script")))
237 (chmod script-file-name #o777) 237 (chmod script-file-name #o777)
238 (catch 'srfi-34 238 (guard (c ((wrap-error? c) #t))
239 (lambda () 239 (wrap-script script-file-name
240 (wrap-script script-file-name 240 #:guile "MYGUILE"
241 #:guile "MYGUILE" 241 `("GUIX_FOO" prefix ("/some/path"
242 `("GUIX_FOO" prefix ("/some/path" 242 "/some/other/path")))
243 "/some/other/path")))) 243 #f)))))
244 (lambda (type obj)
245 (wrap-error? obj)))))))
246 244
247(test-end) 245(test-end)