From c92e662de7987d212bba36838befc267bc6873e0 Mon Sep 17 00:00:00 2001 From: David Reid Date: Sun, 23 Feb 2025 18:22:17 +1000 Subject: [PATCH] Simplify some test code. --- tests/common/common.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/tests/common/common.c b/tests/common/common.c index b3dcb52a..247ccc9c 100644 --- a/tests/common/common.c +++ b/tests/common/common.c @@ -42,14 +42,8 @@ int ma_run_tests(int argc, char** argv) int result; ma_bool32 hasError = MA_FALSE; size_t iTest; - fs* pFS; - if (fs_init(NULL, &pFS) != FS_SUCCESS) { - printf("Failed to initialize the file system.\n"); - return 1; - } - - fs_mkdir(pFS, TEST_OUTPUT_DIR); + fs_mkdir(NULL, TEST_OUTPUT_DIR); for (iTest = 0; iTest < g_Tests.count; iTest += 1) { printf("=== BEGIN %s ===\n", g_Tests.pTests[iTest].pName); @@ -61,9 +55,6 @@ int ma_run_tests(int argc, char** argv) } } - fs_uninit(pFS); - pFS = NULL; - if (hasError) { return 1; /* Something failed. */ } else {