Skip to content

Commit

Permalink
🐛 fix various output issues
Browse files Browse the repository at this point in the history
  • Loading branch information
froz42 committed Mar 28, 2023
1 parent cc4b0e0 commit e9b68a7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions host/srcs/output/pretty/pretty_allocation_track.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,4 +124,5 @@ void write_allocation_track_pretty(
backtrace_print_pretty(backtrace);
}
btree_t_function_call_footprint_foreach(function_tree, write_allocation_track_element);
printf("\n");
}
8 changes: 4 additions & 4 deletions host/srcs/output/pretty/pretty_fetch_result.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
*
* @param t_fetch_result_display the fetch result to write
*/
static void write_fetch_result_success(t_fetch_result_display *fetch_result_display)
static void write_fetch_result_fail(t_fetch_result_display *fetch_result_display)
{
fprintf(stdout, "\n");
fprintf(
Expand All @@ -46,7 +46,7 @@ static void write_fetch_result_success(t_fetch_result_display *fetch_result_disp
*
* @param fetch_result_display the fetch result to write
*/
static void write_fetch_result_fail(t_fetch_result_display *fetch_result_display)
static void write_fetch_result_success(t_fetch_result_display *fetch_result_display)
{
char buffer[1024];

Expand Down Expand Up @@ -81,7 +81,7 @@ void write_function_fetch_result_pretty(
log_task("Testable functions fetching", task_end);

if (fetch_result_display->crash_name)
write_fetch_result_success(fetch_result_display);
else
write_fetch_result_fail(fetch_result_display);
else
write_fetch_result_success(fetch_result_display);
}
1 change: 1 addition & 0 deletions host/srcs/output/pretty/pretty_tail_function_tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ static void print_function_test_result_success_rate(function_tests_result_t *fun

void write_tail_function_tests_pretty(function_tests_result_t *functions_tests_result)
{
printf("\n");
if (functions_tests_result->nb_total_tests && !functions_tests_result->nb_failed_tests)
print_function_test_result_success(functions_tests_result);
else if (functions_tests_result->nb_total_tests)
Expand Down
1 change: 0 additions & 1 deletion host/srcs/output/pretty/pretty_test_result.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ void write_test_result_pretty(t_test_result_display *result)
result->function_tree,
result->function_name,
result->function_backtrace);
fprintf(stdout, "\n");
}

if (is_option_set(SHOW_CURRENT_TEST_MASK, config))
Expand Down

0 comments on commit e9b68a7

Please sign in to comment.