tests: Prefer tf_printf.
Some checks failed
Build Tilde Friends / Build-All (push) Failing after 3m33s
Some checks failed
Build Tilde Friends / Build-All (push) Failing after 3m33s
This commit is contained in:
parent
8df121148d
commit
a9aa928629
@ -902,8 +902,7 @@ static void _write_file(const char* path, const char* contents)
|
|||||||
FILE* file = fopen(path, "w");
|
FILE* file = fopen(path, "w");
|
||||||
if (!file)
|
if (!file)
|
||||||
{
|
{
|
||||||
printf("Unable to write %s: %s.\n", path, strerror(errno));
|
tf_printf("Unable to write %s: %s.\n", path, strerror(errno));
|
||||||
fflush(stdout);
|
|
||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
fputs(contents, file);
|
fputs(contents, file);
|
||||||
@ -933,7 +932,7 @@ void tf_ssb_test_encrypt(const tf_test_options_t* options)
|
|||||||
int result = system(command);
|
int result = system(command);
|
||||||
(void)result;
|
(void)result;
|
||||||
assert(WIFEXITED(result));
|
assert(WIFEXITED(result));
|
||||||
printf("returned %d\n", WEXITSTATUS(result));
|
tf_printf("returned %d\n", WEXITSTATUS(result));
|
||||||
assert(WEXITSTATUS(result) == 0);
|
assert(WEXITSTATUS(result) == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1028,13 +1027,13 @@ void tf_ssb_test_publish(const tf_test_options_t* options)
|
|||||||
int result = system(command);
|
int result = system(command);
|
||||||
(void)result;
|
(void)result;
|
||||||
assert(WIFEXITED(result));
|
assert(WIFEXITED(result));
|
||||||
printf("returned %d\n", WEXITSTATUS(result));
|
tf_printf("returned %d\n", WEXITSTATUS(result));
|
||||||
assert(WEXITSTATUS(result) == 0);
|
assert(WEXITSTATUS(result) == 0);
|
||||||
|
|
||||||
snprintf(command, sizeof(command), "%s publish -d out/test_db0.sqlite -u :admin -i %s -c '{\"type\": \"post\", \"text\": \"Two.\"}'", executable, id);
|
snprintf(command, sizeof(command), "%s publish -d out/test_db0.sqlite -u :admin -i %s -c '{\"type\": \"post\", \"text\": \"Two.\"}'", executable, id);
|
||||||
result = system(command);
|
result = system(command);
|
||||||
assert(WIFEXITED(result));
|
assert(WIFEXITED(result));
|
||||||
printf("returned %d\n", WEXITSTATUS(result));
|
tf_printf("returned %d\n", WEXITSTATUS(result));
|
||||||
assert(WEXITSTATUS(result) == 0);
|
assert(WEXITSTATUS(result) == 0);
|
||||||
|
|
||||||
uv_run(&loop, UV_RUN_DEFAULT);
|
uv_run(&loop, UV_RUN_DEFAULT);
|
||||||
|
@ -40,8 +40,7 @@ static void _write_file(const char* path, const char* contents)
|
|||||||
FILE* file = fopen(path, "w");
|
FILE* file = fopen(path, "w");
|
||||||
if (!file)
|
if (!file)
|
||||||
{
|
{
|
||||||
printf("Unable to write %s: %s.\n", path, strerror(errno));
|
tf_printf("Unable to write %s: %s.\n", path, strerror(errno));
|
||||||
fflush(stdout);
|
|
||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
fputs(contents, file);
|
fputs(contents, file);
|
||||||
|
Loading…
Reference in New Issue
Block a user