test: free memory in unit tests on exit
This commit is contained in:
parent
6ea1082a72
commit
a8496658a0
2 changed files with 3 additions and 0 deletions
|
@ -80,6 +80,7 @@ main(int argc, char **argv)
|
||||||
|
|
||||||
test_unit();
|
test_unit();
|
||||||
|
|
||||||
|
UTI_ResetGetRandomFunctions();
|
||||||
LOG_Finalise();
|
LOG_Finalise();
|
||||||
|
|
||||||
printf("PASS\n");
|
printf("PASS\n");
|
||||||
|
|
|
@ -755,4 +755,6 @@ test_unit(void)
|
||||||
TEST_CHECK(words[1] == buf + 3);
|
TEST_CHECK(words[1] == buf + 3);
|
||||||
TEST_CHECK(strcmp(words[0], "a") == 0);
|
TEST_CHECK(strcmp(words[0], "a") == 0);
|
||||||
TEST_CHECK(strcmp(words[1], "b") == 0);
|
TEST_CHECK(strcmp(words[1], "b") == 0);
|
||||||
|
|
||||||
|
HSH_Finalise();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue