tests: Prefer tf_printf.
Some checks failed
Build Tilde Friends / Build-All (push) Failing after 3m33s

This commit is contained in:
2024-12-17 20:41:27 -05:00
parent 8df121148d
commit a9aa928629
2 changed files with 5 additions and 7 deletions

View File

@ -40,8 +40,7 @@ static void _write_file(const char* path, const char* contents)
FILE* file = fopen(path, "w");
if (!file)
{
printf("Unable to write %s: %s.\n", path, strerror(errno));
fflush(stdout);
tf_printf("Unable to write %s: %s.\n", path, strerror(errno));
abort();
}
fputs(contents, file);