wavparse: split the test

This way one failure won't shadow the other test and also if one fails we get
better disgnostics through the test-name.
This commit is contained in:
Stefan Sauer 2014-01-06 21:12:17 +01:00
parent 5506dc3076
commit d1223ebd10

View file

@ -58,9 +58,15 @@ do_test_empty_file (gboolean can_activate_pull)
gst_object_unref (pipeline); gst_object_unref (pipeline);
} }
GST_START_TEST (test_empty_file) GST_START_TEST (test_empty_file_pull)
{ {
do_test_empty_file (TRUE); do_test_empty_file (TRUE);
}
GST_END_TEST;
GST_START_TEST (test_empty_file_push)
{
do_test_empty_file (FALSE); do_test_empty_file (FALSE);
} }
@ -73,7 +79,8 @@ wavparse_suite (void)
TCase *tc_chain = tcase_create ("wavparse"); TCase *tc_chain = tcase_create ("wavparse");
suite_add_tcase (s, tc_chain); suite_add_tcase (s, tc_chain);
tcase_add_test (tc_chain, test_empty_file); tcase_add_test (tc_chain, test_empty_file_pull);
tcase_add_test (tc_chain, test_empty_file_push);
return s; return s;
} }