Simplify some test code.

This commit is contained in:
David Reid
2025-02-23 18:22:17 +10:00
parent e272f56750
commit c92e662de7
+1 -10
View File
@@ -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 {