TCase *tc;
Suite *s;
SRunner *sr;
+ TestResult ** tr;
char *strstat;
char *trm;
"SRunner stat string incorrect with checked setup failure");
free(strstat);
- trm = tr_str(srunner_failures(sr)[0]);
+ tr = srunner_failures(sr);
+ trm = tr_str(tr[0]);
/* Search for check_check_fixture.c:130 if this fails. */
if (strstr(trm,
"check_check_fixture.c:130:S:Setup Fail:test_sub_fail:0: Failed setup")
ck_abort_msg (errm);
}
free(trm);
+ free(tr);
}
END_TEST
TCase *tc;
Suite *s;
SRunner *sr;
+ TestResult **tr;
char *strstat;
char *trm;
"SRunner stat string incorrect with checked setup signal");
free(strstat);
- trm = tr_str(srunner_failures(sr)[0]);
+ tr = srunner_failures(sr);
+ trm = tr_str(tr[0]);
if (strstr(trm,
"check_check_fixture.c:140:S:Setup Sig:test_sub_fail:0: "
}
free(trm);
srunner_free(sr);
+ free(tr);
}
END_TEST
TCase *tc;
Suite *s;
SRunner *sr;
+ TestResult **tr;
char *strstat;
char *trm;
"SRunner stat string incorrect with checked setup failure");
free(strstat);
- trm = tr_str(srunner_failures(sr)[0]);
+ tr = srunner_failures(sr);
+ trm = tr_str(tr[0]);
if (strstr(trm,
"check_check_fixture.c:135:S:Teardown Fail:test_sub_pass:0: Failed teardown")
ck_abort_msg (errm);
}
free(trm);
+ free(tr);
}
END_TEST
TCase *tc;
Suite *s;
SRunner *sr;
+ TestResult **tr;
char *strstat;
char *trm;
"SRunner stat string incorrect with checked teardown signal");
free(strstat);
- trm = tr_str(srunner_failures(sr)[0]);
+ tr = srunner_failures(sr);
+ trm = tr_str(tr[0]);
if (strstr(trm,
"check_check_fixture.c:146:S:Teardown Sig:test_sub_pass:0: "
}
free(trm);
srunner_free(sr);
+ free(tr);
}
END_TEST