summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorArtyom V. Poptsov <poptsov.artyom@gmail.com>2016-06-13 01:15:13 +0400
committerArtyom V. Poptsov <poptsov.artyom@gmail.com>2016-06-13 01:15:13 +0400
commit7c4dce47a7acd276adb68cfe633f7ca24bbcaba3 (patch)
tree09b0daa1af04b07a613bf0554b8375ad93c3a033 /tests
parent.dir-locals.el: Update (diff)
downloadguile-ssh-7c4dce47a7acd276adb68cfe633f7ca24bbcaba3.tar.gz
tests/client-server.scm: Add a new TC
* tests/client-server.scm ("userauth-none!, not connected"): New TC.
Diffstat (limited to 'tests')
-rw-r--r--tests/client-server.scm5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/client-server.scm b/tests/client-server.scm
index f360a1d..ce8203b 100644
--- a/tests/client-server.scm
+++ b/tests/client-server.scm
@@ -163,6 +163,11 @@
;;; Authentication
+;; Client tries to authenticate using a non-connected session which leads to
+;; an exception.
+(test-error-with-log "userauth-none!, not connected" 'wrong-type-arg
+ (userauth-none! (make-session-for-test)))
+
;; Server replies with "success", client receives 'success.
(test-assert-with-log "userauth-none!, success"