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:31:10 +02:00 committed by Edward Hervey
parent b33f30c658
commit ebfa19b0d1

View file

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