Commit aef61231 authored by Stefan Kost's avatar Stefan Kost
Browse files

tests: use our own macros for the tests main function

parent a08c2ec7
......@@ -871,19 +871,4 @@ adder_suite (void)
return s;
}
int
main (int argc, char **argv)
{
int nf;
Suite *s = adder_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 (adder);
......@@ -333,19 +333,4 @@ appsink_suite (void)
return s;
}
int
main (int argc, char **argv)
{
int nf;
Suite *s = appsink_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 (appsink);
......@@ -125,19 +125,4 @@ audiotestsrc_suite (void)
return s;
}
int
main (int argc, char **argv)
{
int nf;
Suite *s = audiotestsrc_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 (audiotestsrc);
......@@ -410,19 +410,4 @@ gdpdepay_suite (void)
return s;
}
int
main (int argc, char **argv)
{
int nf;
Suite *s = gdpdepay_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 (gdpdepay);
......@@ -563,19 +563,4 @@ gdppay_suite (void)
return s;
}
int
main (int argc, char **argv)
{
int nf;
Suite *s = gdppay_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 (gdppay);
......@@ -864,19 +864,4 @@ multifdsink_suite (void)
return s;
}
int
main (int argc, char **argv)
{
int nf;
Suite *s = multifdsink_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 (multifdsink);
......@@ -429,19 +429,4 @@ videotestsrc_suite (void)
return s;
}
int
main (int argc, char **argv)
{
int nf;
Suite *s = videotestsrc_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 (videotestsrc);
......@@ -336,19 +336,4 @@ vorbisdec_suite (void)
return s;
}
int
main (int argc, char **argv)
{
int nf;
Suite *s = vorbisdec_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 (vorbisdec);
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