tests: h264parse: fix exit code

This commit is contained in:
René Stadler 2011-11-01 12:12:56 +01:00
parent e3b7cb8899
commit e922dee30b

View file

@ -328,7 +328,7 @@ h264parse_packetized_suite (void)
int
main (int argc, char **argv)
{
int nf;
int nf = 0;
Suite *s;
SRunner *sr;
@ -354,7 +354,7 @@ main (int argc, char **argv)
s = h264parse_suite ();
sr = srunner_create (s);
srunner_run_all (sr, CK_NORMAL);
nf = srunner_ntests_failed (sr);
nf += srunner_ntests_failed (sr);
srunner_free (sr);
/* setup and tweak to handle avc au output */
@ -366,7 +366,7 @@ main (int argc, char **argv)
s = h264parse_suite ();
sr = srunner_create (s);
srunner_run_all (sr, CK_NORMAL);
nf = srunner_ntests_failed (sr);
nf += srunner_ntests_failed (sr);
srunner_free (sr);
/* setup and tweak to handle avc packetized input */
@ -386,7 +386,7 @@ main (int argc, char **argv)
s = h264parse_packetized_suite ();
sr = srunner_create (s);
srunner_run_all (sr, CK_NORMAL);
nf = srunner_ntests_failed (sr);
nf += srunner_ntests_failed (sr);
srunner_free (sr);
return nf;