check: Use GST_CHECK_MAIN macro
authorEdward Hervey <bilboed@bilboed.com>
Tue, 2 Jun 2015 14:33:48 +0000 (16:33 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Tue, 2 Jun 2015 14:33:48 +0000 (16:33 +0200)
tests/check/gst/gstprotection.c

index 5a4fa2f..3f11f8a 100644 (file)
@@ -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);