moved mk_sample_state() into util
This commit is contained in:
10
test/util.c
10
test/util.c
@@ -131,6 +131,16 @@ decl_test(compare_ptrs_test);
|
||||
|
||||
// Public Functions
|
||||
|
||||
void
|
||||
mk_sample_state(TestState *s)
|
||||
{
|
||||
memset(s, 0, sizeof(TestState));
|
||||
s->passed = 1;
|
||||
s->failed = 2;
|
||||
s->pending = 3;
|
||||
s->run = 6;
|
||||
}
|
||||
|
||||
void
|
||||
compare_states(
|
||||
TestState *s,
|
||||
|
||||
Reference in New Issue
Block a user