aboutsummaryrefslogtreecommitdiff
path: root/tests/unittests/torture_misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unittests/torture_misc.c')
-rw-r--r--tests/unittests/torture_misc.c25
1 files changed, 1 insertions, 24 deletions
diff --git a/tests/unittests/torture_misc.c b/tests/unittests/torture_misc.c
index 6904997e..5996bd97 100644
--- a/tests/unittests/torture_misc.c
+++ b/tests/unittests/torture_misc.c
@@ -117,7 +117,7 @@ START_TEST (torture_path_expand_escape)
}
END_TEST
-static Suite *torture_make_suite(void) {
+Suite *torture_make_suite(void) {
Suite *s = suite_create("libssh_misc");
torture_create_case(s, "torture_get_user_home_dir", torture_get_user_home_dir);
@@ -131,26 +131,3 @@ static Suite *torture_make_suite(void) {
return s;
}
-int main(int argc, char **argv) {
- Suite *s = NULL;
- SRunner *sr = NULL;
- struct argument_s arguments;
- int nf;
-
- ZERO_STRUCT(arguments);
-
- torture_cmdline_parse(argc, argv, &arguments);
-
- s = torture_make_suite();
-
- sr = srunner_create(s);
- if (arguments.nofork) {
- srunner_set_fork_status(sr, CK_NOFORK);
- }
- srunner_run_all(sr, CK_VERBOSE);
- nf = srunner_ntests_failed(sr);
- srunner_free(sr);
-
- return (nf == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
-}
-