mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-13 23:22:54 +00:00
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 ...)
This commit is contained in:
parent
4516bad519
commit
4da9692f4c
2 changed files with 2 additions and 36 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue