Give tinytest a function to say whether the current test has failed

This commit is contained in:
Nick Mathewson
2019-05-14 19:47:43 -04:00
parent f664c0c318
commit e4feb4ad01
2 changed files with 9 additions and 0 deletions
+6
View File
@@ -492,6 +492,12 @@ tinytest_set_test_skipped_(void)
cur_test_outcome = SKIP;
}
int
tinytest_cur_test_has_failed(void)
{
return (cur_test_outcome == FAIL);
}
char *
tinytest_format_hex_(const void *val_, unsigned long len)
{