aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Steven Schubiger <stsc@refcnt.org> 2015-11-07 22:33:14 +0100
committerGravatar Steven Schubiger <stsc@refcnt.org> 2015-11-07 22:33:14 +0100
commit0bb0226c45a302f5c06676818dd94ae7604d6c1b (patch)
tree32c06f8b74adcb468b75c0c1260d3bbc05ff47b1
parentd333dd13bcc968fb82db68bc1481c1e37754d71e (diff)
downloadcolorize-0bb0226c45a302f5c06676818dd94ae7604d6c1b.tar.gz
colorize-0bb0226c45a302f5c06676818dd94ae7604d6c1b.tar.bz2
Circumvent cleanup function for testing output
-rw-r--r--colorize.c4
1 files 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);