From ebfa19b0d1fb17e888db7d9fd2b171eab2bef07d Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Tue, 2 Jun 2015 16:31:10 +0200 Subject: [PATCH] check: Use GST_CHECK_MAIN () macro everywhere Makes source code smaller, and ensures we go through common initialization path (like the one that sets up XML unit test output ...) --- tests/check/pipelines/lame.c | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/tests/check/pipelines/lame.c b/tests/check/pipelines/lame.c index 2fc18f4eec..a69f58a9cb 100644 --- a/tests/check/pipelines/lame.c +++ b/tests/check/pipelines/lame.c @@ -124,19 +124,4 @@ lame_suite (void) return s; } -int -main (int argc, char **argv) -{ - int nf; - - Suite *s = lame_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 (lame);