From 0bb0226c45a302f5c06676818dd94ae7604d6c1b Mon Sep 17 00:00:00 2001 From: Steven Schubiger Date: Sat, 7 Nov 2015 22:33:14 +0100 Subject: Circumvent cleanup function for testing output --- colorize.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/colorize.c b/colorize.c index c0baf60..a6bd56d 100644 --- a/colorize.c +++ b/colorize.c @@ -795,8 +795,8 @@ merge_print_line (bool bold, const struct color **colors, const char *line, cons #ifdef TEST_MERGE_PART_LINE printf ("%s", part_line); - free (merged_part_line); - exit (EXIT_SUCCESS); + fflush (stdout); + _exit (EXIT_SUCCESS); #else print_line (bold, colors, part_line, 0); free (merged_part_line); -- cgit v1.2.3