diff --git a/tests/client/torture_sftp_dir.c b/tests/client/torture_sftp_dir.c index ba671e41..8af3a2d8 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);