implemented log_test_context()
This commit is contained in:
parent
24ed9060ba
commit
01e9cb8794
8
9unit.c
8
9unit.c
|
@ -157,6 +157,14 @@ append_test_log(TestState *s, const char *msg)
|
|||
s->last_log = entry;
|
||||
}
|
||||
|
||||
void
|
||||
log_test_context(TestState *s)
|
||||
{
|
||||
if (!s) return;
|
||||
if (s->full_context) append_test_log(s, s->full_context);
|
||||
else append_test_log(s, "<no context>");
|
||||
}
|
||||
|
||||
void
|
||||
run_test(TestState *s, TestResult (*t)(TestState *))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user