Fix tests
This commit is contained in:
@@ -438,6 +438,7 @@ static void test_requireLoaded_propagates_error(void **state) {
|
|||||||
// ============================================================
|
// ============================================================
|
||||||
|
|
||||||
int main(void) {
|
int main(void) {
|
||||||
|
assertInit();
|
||||||
const struct CMUnitTest tests[] = {
|
const struct CMUnitTest tests[] = {
|
||||||
// getEntry
|
// getEntry
|
||||||
cmocka_unit_test_setup_teardown(test_getEntry_creates_new, asset_setup, asset_teardown),
|
cmocka_unit_test_setup_teardown(test_getEntry_creates_new, asset_setup, asset_teardown),
|
||||||
|
|||||||
@@ -212,6 +212,7 @@ static void test_json_buffer_cleared_after_load(void **state) {
|
|||||||
// ============================================================
|
// ============================================================
|
||||||
|
|
||||||
int main(void) {
|
int main(void) {
|
||||||
|
assertInit();
|
||||||
const struct CMUnitTest tests[] = {
|
const struct CMUnitTest tests[] = {
|
||||||
cmocka_unit_test_setup_teardown(test_json_valid_loads, zip_setup, zip_teardown),
|
cmocka_unit_test_setup_teardown(test_json_valid_loads, zip_setup, zip_teardown),
|
||||||
cmocka_unit_test_setup_teardown(test_json_parse_error, zip_setup, zip_teardown),
|
cmocka_unit_test_setup_teardown(test_json_parse_error, zip_setup, zip_teardown),
|
||||||
|
|||||||
@@ -342,6 +342,7 @@ static void test_tileset_missing_file(void **state) {
|
|||||||
// ============================================================
|
// ============================================================
|
||||||
|
|
||||||
int main(void) {
|
int main(void) {
|
||||||
|
assertInit();
|
||||||
const struct CMUnitTest tests[] = {
|
const struct CMUnitTest tests[] = {
|
||||||
cmocka_unit_test_setup_teardown(test_tileset_valid_loads, zip_setup, zip_teardown),
|
cmocka_unit_test_setup_teardown(test_tileset_valid_loads, zip_setup, zip_teardown),
|
||||||
cmocka_unit_test_setup_teardown(test_tileset_data_cleared_after_load, zip_setup, zip_teardown),
|
cmocka_unit_test_setup_teardown(test_tileset_data_cleared_after_load, zip_setup, zip_teardown),
|
||||||
|
|||||||
Reference in New Issue
Block a user