From: Michael Tremer Date: Sun, 10 Jan 2021 15:15:12 +0000 (+0000) Subject: tests: Drop testsuite_init() call from all tests X-Git-Tag: 0.9.28~1285^2~910 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed050b9910559958352fbbfeaa9d9f8b0a10b1aa;p=pakfire.git tests: Drop testsuite_init() call from all tests Signed-off-by: Michael Tremer --- diff --git a/tests/libpakfire/archive.c b/tests/libpakfire/archive.c index d3ecfc96a..5a10c3e48 100644 --- a/tests/libpakfire/archive.c +++ b/tests/libpakfire/archive.c @@ -87,8 +87,6 @@ int test_import(const test_t* t) { } int main(int argc, char** argv) { - testsuite_init(); - testsuite_t* ts = testsuite_create(3); testsuite_add_test(ts, "test_open", test_open); diff --git a/tests/libpakfire/execute.c b/tests/libpakfire/execute.c index ea520629a..d7baf33ed 100644 --- a/tests/libpakfire/execute.c +++ b/tests/libpakfire/execute.c @@ -35,8 +35,6 @@ int test_does_not_exist(const test_t* t) { } int main(int argc, char** argv) { - testsuite_init(); - testsuite_t* ts = testsuite_create(1); testsuite_add_test(ts, "test_does_not_exist", test_does_not_exist); diff --git a/tests/libpakfire/key.c b/tests/libpakfire/key.c index 359a352c6..482f3b857 100644 --- a/tests/libpakfire/key.c +++ b/tests/libpakfire/key.c @@ -96,8 +96,6 @@ int test_export(const test_t* t) { } int main(int argc, char** argv) { - testsuite_init(); - testsuite_t* ts = testsuite_create(3); testsuite_add_test(ts, "test_init", test_init); diff --git a/tests/libpakfire/main.c b/tests/libpakfire/main.c index 9927572d8..de5e0bc85 100644 --- a/tests/libpakfire/main.c +++ b/tests/libpakfire/main.c @@ -38,8 +38,6 @@ static int test_path(const test_t* t) { } int main(int argc, char** argv) { - testsuite_init(); - testsuite_t* ts = testsuite_create(2); testsuite_add_test(ts, "test_init", test_init); diff --git a/tests/libpakfire/makefile.c b/tests/libpakfire/makefile.c index aed582f95..a32cc0710 100644 --- a/tests/libpakfire/makefile.c +++ b/tests/libpakfire/makefile.c @@ -53,8 +53,6 @@ int test_parse(const test_t* t) { } int main(int argc, char** argv) { - testsuite_init(); - testsuite_t* ts = testsuite_create(1); testsuite_add_test(ts, "test_parse", test_parse); diff --git a/tests/libpakfire/parser.c b/tests/libpakfire/parser.c index b47161f03..56f084f22 100644 --- a/tests/libpakfire/parser.c +++ b/tests/libpakfire/parser.c @@ -103,8 +103,6 @@ int test_parser(const test_t* t) { } int main(int argc, char** argv) { - testsuite_init(); - testsuite_t* ts = testsuite_create(1); testsuite_add_test(ts, "test_parser", test_parser); diff --git a/tests/libpakfire/util.c b/tests/libpakfire/util.c index a4bd54254..c842397ad 100644 --- a/tests/libpakfire/util.c +++ b/tests/libpakfire/util.c @@ -46,8 +46,6 @@ int test_dirname(const test_t* t) { } int main(int argc, char** argv) { - testsuite_init(); - testsuite_t* ts = testsuite_create(2); testsuite_add_test(ts, "test_basename", test_basename);