mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-07-31 00:03:07 +03:00
tests: Rename torture_sftp_static to torture_sftp_ext
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
33
tests/client/torture_sftp_ext.c
Normal file
33
tests/client/torture_sftp_ext.c
Normal file
@ -0,0 +1,33 @@
|
||||
#define LIBSSH_STATIC
|
||||
|
||||
#include "torture.h"
|
||||
#include "sftp.c"
|
||||
|
||||
static void torture_sftp_ext_new(void **state) {
|
||||
sftp_ext x;
|
||||
|
||||
(void) state;
|
||||
|
||||
x = sftp_ext_new();
|
||||
assert_false(x == NULL);
|
||||
assert_int_equal(x->count, 0);
|
||||
assert_true(x->name == NULL);
|
||||
assert_true(x->data == NULL);
|
||||
|
||||
sftp_ext_free(x);
|
||||
}
|
||||
|
||||
int torture_run_tests(void) {
|
||||
int rc;
|
||||
struct CMUnitTest tests[] = {
|
||||
cmocka_unit_test(torture_sftp_ext_new),
|
||||
};
|
||||
|
||||
ssh_init();
|
||||
|
||||
torture_filter_tests(tests);
|
||||
rc = cmocka_run_group_tests(tests, NULL, NULL);
|
||||
ssh_finalize();
|
||||
|
||||
return rc;
|
||||
}
|
Reference in New Issue
Block a user