Skip to content

Commit

Permalink
feat: print diff if wrong return
Browse files Browse the repository at this point in the history
  • Loading branch information
paulo-santana committed Jul 14, 2021
1 parent 9923954 commit b5b7db9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ int check_result(t_result *user_result, t_result *orig_result, char *params_used
tester_putstr(" (Wrong return)");
if (errors == ERRORS_LEAK)
tester_putstr(RED " (LEAKS!)");
if (!success) {
if (!success || wrong_return) {
tester_putstr("\n");
print_output(orig_result, user_result, orig_result->bytes_read, user_result->bytes_read);
}
Expand Down

0 comments on commit b5b7db9

Please sign in to comment.