check: Use GST_CHECK_MAIN () macro everywhere

Makes source code smaller, and ensures we go through common initialization
path (like the one that sets up XML unit test output ...)
This commit is contained in:
Edward Hervey 2015-06-02 16:32:55 +02:00 committed by Edward Hervey
parent 4516bad519
commit 4da9692f4c
2 changed files with 2 additions and 36 deletions

View file

@ -158,21 +158,4 @@ simple_launch_lines_suite (void)
return s;
}
int
main (int argc, char **argv)
{
SRunner *sr;
Suite *s;
int nf;
gst_check_init (&argc, &argv);
s = simple_launch_lines_suite ();
sr = srunner_create (s);
srunner_run_all (sr, CK_NORMAL);
nf = srunner_ntests_failed (sr);
srunner_free (sr);
return nf;
}
GST_CHECK_MAIN (simple_launch_lines);

View file

@ -95,21 +95,4 @@ plugin_test_suite (void)
return s;
}
int
main (int argc, char **argv)
{
SRunner *sr;
Suite *s;
int nf;
gst_check_init (&argc, &argv);
s = plugin_test_suite ();
sr = srunner_create (s);
srunner_run_all (sr, CK_NORMAL);
nf = srunner_ntests_failed (sr);
srunner_free (sr);
return nf;
}
GST_CHECK_MAIN (plugin_test);