fix unit test app to print tests in the same order they are given in files
This commit is contained in:
parent
47d3759474
commit
1e2c5cc151
1 changed files with 6 additions and 5 deletions
|
@ -42,13 +42,14 @@ void unity_testcase_register(struct test_desc_t* desc)
|
||||||
if (!s_unity_tests_first)
|
if (!s_unity_tests_first)
|
||||||
{
|
{
|
||||||
s_unity_tests_first = desc;
|
s_unity_tests_first = desc;
|
||||||
|
s_unity_tests_last = desc;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
s_unity_tests_last->next = desc;
|
struct test_desc_t* temp = s_unity_tests_first;
|
||||||
|
s_unity_tests_first = desc;
|
||||||
|
s_unity_tests_first->next = temp;
|
||||||
}
|
}
|
||||||
s_unity_tests_last = desc;
|
|
||||||
desc->next = NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void unity_run_single_test(const struct test_desc_t* test)
|
static void unity_run_single_test(const struct test_desc_t* test)
|
||||||
|
|
Loading…
Reference in a new issue