summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtyom V. Poptsov <poptsov.artyom@gmail.com>2016-06-13 01:50:32 +0400
committerArtyom V. Poptsov <poptsov.artyom@gmail.com>2016-06-13 01:50:32 +0400
commit9dc629d1e39be38dc26168ed189bcfcda2e39fe1 (patch)
tree5621d16c9ffe85bcf2e979729d65f5332f39c03b
parenttests/client-server.scm: Add a new TC (diff)
downloadguile-ssh-9dc629d1e39be38dc26168ed189bcfcda2e39fe1.tar.gz
tests/client-server.scm: Add a new TC
* tests/client-server.scm ("userauth-get-list, wrong parameter"): New test case.
-rw-r--r--tests/client-server.scm6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/client-server.scm b/tests/client-server.scm
index f247ce5..40a426b 100644
--- a/tests/client-server.scm
+++ b/tests/client-server.scm
@@ -345,6 +345,12 @@
(eq? res 'success)))))))
+;; The procedure called with a wrong object as a parameter which leads to an
+;; exception.
+(test-error-with-log "userauth-get-list, wrong parameter" 'wrong-type-arg
+ (userauth-get-list "Not a session."))
+
+
;; Server replies "default" with the list of allowed authentication
;; methods. Client receives the list.
(test-assert-with-log "userauth-get-list"