mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-07-29 13:01:13 +03:00
tests: Migrate to new cmocka API
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
@ -15,9 +15,13 @@ static void torture_ssh_init(void **state) {
|
||||
}
|
||||
|
||||
int torture_run_tests(void) {
|
||||
UnitTest tests[] = {
|
||||
unit_test(torture_ssh_init),
|
||||
int rc;
|
||||
struct CMUnitTest tests[] = {
|
||||
cmocka_unit_test(torture_ssh_init),
|
||||
};
|
||||
|
||||
torture_filter_tests(tests);
|
||||
return run_tests(tests);
|
||||
rc = cmocka_run_group_tests(tests, NULL, NULL);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user