diff --git a/tests/check/elements/gdpdepay.c b/tests/check/elements/gdpdepay.c index 811d9cdf07..3ee83c81ae 100644 --- a/tests/check/elements/gdpdepay.c +++ b/tests/check/elements/gdpdepay.c @@ -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); diff --git a/tests/check/elements/gdppay.c b/tests/check/elements/gdppay.c index 267b266dc0..13117a6944 100644 --- a/tests/check/elements/gdppay.c +++ b/tests/check/elements/gdppay.c @@ -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);