tests/check/: use the new macro
[platform/upstream/gstreamer.git] / tests / check / generic / states.c
index 56fd38f..30a6ea6 100644 (file)
@@ -76,19 +76,4 @@ states_suite (void)
   return s;
 }
 
-int
-main (int argc, char **argv)
-{
-  int nf;
-
-  Suite *s = states_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 (states);