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 c3c306b486
commit fe14a23327
5 changed files with 5 additions and 80 deletions

View file

@ -145,19 +145,4 @@ amrnbenc_suite ()
return s; return s;
} }
int GST_CHECK_MAIN (amrnbenc);
main (int argc, char **argv)
{
int nf;
Suite *s = amrnbenc_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;
}

View file

@ -1955,19 +1955,4 @@ mpeg2dec_suite (void)
return s; return s;
} }
int GST_CHECK_MAIN (mpeg2dec);
main (int argc, char **argv)
{
int nf;
Suite *s = mpeg2dec_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;
}

View file

@ -305,19 +305,4 @@ x264enc_suite (void)
return s; return s;
} }
int GST_CHECK_MAIN (x264enc);
main (int argc, char **argv)
{
int nf;
Suite *s = x264enc_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;
}

View file

@ -151,19 +151,4 @@ xingmux_suite (void)
return s; return s;
} }
int GST_CHECK_MAIN (xingmux);
main (int argc, char **argv)
{
int nf;
Suite *s = xingmux_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;
}

View file

@ -124,19 +124,4 @@ lame_suite (void)
return s; return s;
} }
int GST_CHECK_MAIN (lame);
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;
}