summaryrefslogtreecommitdiff
path: root/guile/tests/errors.scm
diff options
context:
space:
mode:
Diffstat (limited to 'guile/tests/errors.scm')
-rw-r--r--guile/tests/errors.scm26
1 files changed, 15 insertions, 11 deletions
diff --git a/guile/tests/errors.scm b/guile/tests/errors.scm
index 4d4d958f85..b8d46234ab 100644
--- a/guile/tests/errors.scm
+++ b/guile/tests/errors.scm
@@ -1,5 +1,5 @@
;;; GnuTLS --- Guile bindings for GnuTLS.
-;;; Copyright (C) 2007-2012 Free Software Foundation, Inc.
+;;; Copyright (C) 2007-2012, 2019 Free Software Foundation, Inc.
;;;
;;; GnuTLS is free software; you can redistribute it and/or
;;; modify it under the terms of the GNU Lesser General Public
@@ -26,15 +26,19 @@
(gnutls build tests))
(run-test
- (lambda ()
- (let ((s (make-session connection-end/server)))
- (catch 'gnutls-error
- (lambda ()
- (handshake s))
- (lambda (key err function . currently-unused)
- (and (eq? key 'gnutls-error)
- err
- (string? (error->string err))
- (eq? function 'handshake)))))))
+ (lambda ()
+ (and (fatal-error? error/hash-failed)
+ (not (fatal-error? error/reauth-request))
+
+ (let ((s (make-session connection-end/server)))
+ (catch 'gnutls-error
+ (lambda ()
+ (handshake s))
+ (lambda (key err function . currently-unused)
+ (and (eq? key 'gnutls-error)
+ err
+ (fatal-error? err)
+ (string? (error->string err))
+ (eq? function 'handshake))))))))
;;; arch-tag: 73ed6229-378d-4a12-a5c6-4c2586c6e3a2