moved mk_sample_state() into util
This commit is contained in:
@@ -31,7 +31,6 @@
|
||||
static void test_pass(TestState *);
|
||||
static void test_fail(TestState *);
|
||||
static void test_pend(TestState *);
|
||||
static void mk_sample_state(TestState *);
|
||||
decl_test(always_passes);
|
||||
decl_test(always_fails);
|
||||
decl_test(always_pends);
|
||||
@@ -127,16 +126,6 @@ test_pend(TestState *s)
|
||||
);
|
||||
}
|
||||
|
||||
static void
|
||||
mk_sample_state(TestState *s)
|
||||
{
|
||||
memset(s, 0, sizeof(TestState));
|
||||
s->passed = 1;
|
||||
s->failed = 2;
|
||||
s->pending = 3;
|
||||
s->run = 6;
|
||||
}
|
||||
|
||||
decl_test(always_passes)
|
||||
{
|
||||
return test_success;
|
||||
|
||||
Reference in New Issue
Block a user