tests/check/: use the new macro
[platform/upstream/gstreamer.git] / tests / check / libs / gdp.c
index ea85b90..ca0e80b 100644 (file)
@@ -279,7 +279,7 @@ GST_START_TEST (test_event)
 GST_END_TEST;
 
 Suite *
-gst_data_protocol_suite (void)
+gst_dp_suite (void)
 {
   Suite *s = suite_create ("data protocol");
   TCase *tc_chain = tcase_create ("general");
@@ -293,20 +293,4 @@ gst_data_protocol_suite (void)
   return s;
 }
 
-int
-main (int argc, char **argv)
-{
-  int nf;
-
-  Suite *s = gst_data_protocol_suite ();
-  SRunner *sr = srunner_create (s);
-
-  gst_check_init (&argc, &argv);
-  gst_dp_init ();
-
-  srunner_run_all (sr, CK_NORMAL);
-  nf = srunner_ntests_failed (sr);
-  srunner_free (sr);
-
-  return nf;
-}
+GST_CHECK_MAIN (gst_dp);