From c5a3e8db37b62f557a09314dc99507c4a43ff3d8 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Tue, 2 Jun 2015 16:33:48 +0200 Subject: [PATCH] check: Use GST_CHECK_MAIN macro --- tests/check/gst/gstprotection.c | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/tests/check/gst/gstprotection.c b/tests/check/gst/gstprotection.c index 5a4fa2f210..3f11f8a090 100644 --- a/tests/check/gst/gstprotection.c +++ b/tests/check/gst/gstprotection.c @@ -288,19 +288,4 @@ protection_suite (void) return s; } -int -main (int argc, char **argv) -{ - int nf; - - Suite *s = protection_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 (protection);