diff options
author | Edward Hervey <edward@centricular.com> | 2015-06-02 16:32:55 +0200 |
---|---|---|
committer | Edward Hervey <bilboed@bilboed.com> | 2015-06-02 16:32:55 +0200 |
commit | 4da9692f4c743e4ea78ff8992b4a9dc2804b8ce5 (patch) | |
tree | 7784444f9e4bff522134cb867ee66632e0576a86 /tests | |
parent | 4516bad519c2a78a910d6246ed9c7586a208958b (diff) | |
download | gst-libav-4da9692f4c743e4ea78ff8992b4a9dc2804b8ce5.tar.gz |
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 ...)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/check/generic/libavcodec-locking.c | 19 | ||||
-rw-r--r-- | tests/check/generic/plugin-test.c | 19 |
2 files changed, 2 insertions, 36 deletions
diff --git a/tests/check/generic/libavcodec-locking.c b/tests/check/generic/libavcodec-locking.c index 5990941..a6dfb8e 100644 --- a/tests/check/generic/libavcodec-locking.c +++ b/tests/check/generic/libavcodec-locking.c @@ -158,21 +158,4 @@ simple_launch_lines_suite (void) return s; } -int -main (int argc, char **argv) -{ - SRunner *sr; - Suite *s; - int nf; - - gst_check_init (&argc, &argv); - - s = simple_launch_lines_suite (); - sr = srunner_create (s); - - srunner_run_all (sr, CK_NORMAL); - nf = srunner_ntests_failed (sr); - srunner_free (sr); - - return nf; -} +GST_CHECK_MAIN (simple_launch_lines); diff --git a/tests/check/generic/plugin-test.c b/tests/check/generic/plugin-test.c index e1bfdef..53831d2 100644 --- a/tests/check/generic/plugin-test.c +++ b/tests/check/generic/plugin-test.c @@ -95,21 +95,4 @@ plugin_test_suite (void) return s; } -int -main (int argc, char **argv) -{ - SRunner *sr; - Suite *s; - int nf; - - gst_check_init (&argc, &argv); - - s = plugin_test_suite (); - sr = srunner_create (s); - - srunner_run_all (sr, CK_NORMAL); - nf = srunner_ntests_failed (sr); - srunner_free (sr); - - return nf; -} +GST_CHECK_MAIN (plugin_test); |