aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2011-02-13 10:44:09 +0100
committerAndreas Schneider <asn@cryptomilk.org>2011-02-13 10:44:09 +0100
commita0c05c4c4e21cef4f8b30dd174b63e31d7f3106e (patch)
tree682f51775173d8c74b3f45f034b83d36ccf9636b
parent499467d362021a147c9ea3d5083881feb2e42696 (diff)
downloadlibssh-a0c05c4c4e21cef4f8b30dd174b63e31d7f3106e.tar.gz
libssh-a0c05c4c4e21cef4f8b30dd174b63e31d7f3106e.tar.xz
libssh-a0c05c4c4e21cef4f8b30dd174b63e31d7f3106e.zip
tests: Added two asserts to torture_sftp_dir.
-rw-r--r--tests/client/torture_sftp_dir.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/client/torture_sftp_dir.c b/tests/client/torture_sftp_dir.c
index ba671e4..8af3a2d 100644
--- a/tests/client/torture_sftp_dir.c
+++ b/tests/client/torture_sftp_dir.c
@@ -29,6 +29,8 @@ static void setup(void **state) {
static void teardown(void **state) {
struct torture_sftp *t = *state;
+ assert_false(t == NULL);
+
torture_rmdirs(t->testdir);
torture_sftp_close(t);
}
@@ -38,6 +40,8 @@ static void torture_sftp_mkdir(void **state) {
char tmpdir[128];
int rc;
+ assert_false(t == NULL);
+
snprintf(tmpdir, sizeof(tmpdir), "%s/mkdir_test", t->testdir);
rc = sftp_mkdir(t->sftp, tmpdir, 0755);