tests: Avoid (catch 'srfi-34 …) form.
* tests/build-utils.scm ("wrap-script, raises condition"): Use 'guard' instead of "catch 'srfi-34".master
parent
5d297ca676
commit
1d64afbdc0
|
@ -235,13 +235,11 @@ print('hello world')"))
|
||||||
(lambda (port)
|
(lambda (port)
|
||||||
(format port "This is not a script")))
|
(format port "This is not a script")))
|
||||||
(chmod script-file-name #o777)
|
(chmod script-file-name #o777)
|
||||||
(catch 'srfi-34
|
(guard (c ((wrap-error? c) #t))
|
||||||
(lambda ()
|
(wrap-script script-file-name
|
||||||
(wrap-script script-file-name
|
#:guile "MYGUILE"
|
||||||
#:guile "MYGUILE"
|
`("GUIX_FOO" prefix ("/some/path"
|
||||||
`("GUIX_FOO" prefix ("/some/path"
|
"/some/other/path")))
|
||||||
"/some/other/path"))))
|
#f)))))
|
||||||
(lambda (type obj)
|
|
||||||
(wrap-error? obj)))))))
|
|
||||||
|
|
||||||
(test-end)
|
(test-end)
|
||||||
|
|
Reference in New Issue