Commit 4da9692f authored by Edward Hervey's avatar Edward Hervey 🤘 Committed by Edward Hervey

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 ...)
parent 4516bad5
......@@ -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);
......@@ -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);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment