diff options
author | Sven Strickroth <email@cs-ware.de> | 2014-09-24 11:28:45 +0200 |
---|---|---|
committer | Sven Strickroth <email@cs-ware.de> | 2014-10-09 17:32:38 +0200 |
commit | db3d169c3351e31bab6cbddc7a7c29a0157f7a99 (patch) | |
tree | af8622e5f44647bc825915bbb332a658ee29dae0 | |
parent | e6e834a1299eb963c69839d0a3e8eb2e33f15640 (diff) | |
download | libgit2-db3d169c3351e31bab6cbddc7a7c29a0157f7a99.tar.gz |
Add tests for host names
Signed-off-by: Sven Strickroth <email@cs-ware.de>
-rw-r--r-- | tests/online/clone.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/online/clone.c b/tests/online/clone.c index d5015383b..13abd39bd 100644 --- a/tests/online/clone.c +++ b/tests/online/clone.c @@ -480,7 +480,6 @@ int ssh_certificate_check(git_cert *cert, int valid, const char *host, void *pay const char *expected_str; GIT_UNUSED(valid); - GIT_UNUSED(host); GIT_UNUSED(payload); expected_str = cl_getenv("GITTEST_REMOTE_SSH_FINGERPRINT"); @@ -505,6 +504,8 @@ int ssh_certificate_check(git_cert *cert, int valid, const char *host, void *pay cl_assert(!memcmp(&expected, &actual, 20)); + cl_assert_equal_s("localhost", host); + return GIT_EUSER; } @@ -551,9 +552,10 @@ static int succeed_certificate_check(git_cert *cert, int valid, const char *host { GIT_UNUSED(cert); GIT_UNUSED(valid); - GIT_UNUSED(host); GIT_UNUSED(payload); + cl_assert_equal_s("github.com", host); + return 0; } |