diff options
author | Vivien Kraus <vivien@planete-kraus.eu> | 2021-08-09 18:46:48 +0200 |
---|---|---|
committer | Vivien Kraus <vivien@planete-kraus.eu> | 2021-08-13 01:06:38 +0200 |
commit | ded10e28782f289ad3db15320bcf619ab4336876 (patch) | |
tree | 32609fd9f1eb0d2f8a23105e09f193827d16a275 /src/scm/webid-oidc/testing.scm | |
parent | 7b62790238902e10edb83c07286cf0643b097997 (diff) |
Switch to a more sensible error reporting system
Diffstat (limited to 'src/scm/webid-oidc/testing.scm')
-rw-r--r-- | src/scm/webid-oidc/testing.scm | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/src/scm/webid-oidc/testing.scm b/src/scm/webid-oidc/testing.scm index f4de433..06d0127 100644 --- a/src/scm/webid-oidc/testing.scm +++ b/src/scm/webid-oidc/testing.scm @@ -27,17 +27,11 @@ ;; This module is used only when running tests. (define-public (with-test-environment test-name f) - (with-exception-handler - (lambda (error) - (format (current-error-port) "The test failed, because ~a.\n" - (error->str error)) - (raise-exception error)) - (lambda () - (parameterize ((data-home (format #f "tests/~a.home/disfluid" test-name)) - (cache-home (format #f "tests/~a.cache/disfluid" test-name))) - (call-with-output-file* - (format #f "~a/seed" (cache-home)) - (lambda (port) - (format port "This is the initial seed for the random number generator"))) - (random-init!) - (f))))) + (parameterize ((data-home (format #f "tests/~a.home/disfluid" test-name)) + (cache-home (format #f "tests/~a.cache/disfluid" test-name))) + (call-with-output-file* + (format #f "~a/seed" (cache-home)) + (lambda (port) + (format port "This is the initial seed for the random number generator"))) + (random-init!) + (f))) |