(use-modules (webid-oidc testing) ((webid-oidc stubs) #:prefix stubs:) (webid-oidc errors) (rnrs bytevectors)) (with-test-environment "base64-error" (lambda () (let ((test "hello :)")) (unless (with-exception-handler (lambda (error) (unless ((record-predicate ¬-base64) error) (exit 1)) #t) (lambda () (stubs:base64-decode test) #f) #:unwind? #t #:unwind-for-type ¬-base64) (exit 2)))))