diff options
author | Carl Worth <cworth@cworth.org> | 2005-05-10 20:25:38 +0000 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2005-05-10 20:25:38 +0000 |
commit | b05c85eafb953fbe082b67875865ae4e4ca56ed2 (patch) | |
tree | e6997cd68fd5f9772e7a79342bbe01f568357f92 /test/xmalloc.c | |
parent | 40796148b87eea991a9c624061a978821f108de6 (diff) |
Removing mucking around with stderr and add a cairo_test_log function instead.
Switch all error messages from fprintf(stderr,...) to cairo_test_log(...).
Diffstat (limited to 'test/xmalloc.c')
-rw-r--r-- | test/xmalloc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/xmalloc.c b/test/xmalloc.c index 04ed38af..f5721c5d 100644 --- a/test/xmalloc.c +++ b/test/xmalloc.c @@ -26,6 +26,7 @@ #include <stdio.h> #include <stdlib.h> +#include "cairo-test.h" #include "xmalloc.h" void * @@ -35,7 +36,7 @@ xmalloc (size_t size) buf = malloc (size); if (!buf) { - fprintf (stderr, "Error: Out of memory. Exiting.\n"); + cairo_test_log ("Error: Out of memory. Exiting.\n"); exit (1); } @@ -49,7 +50,7 @@ xcalloc (size_t nmemb, size_t size) buf = calloc (nmemb, size); if (!buf) { - fprintf (stderr, "Error: Out of memory. Exiting\n"); + cairo_test_log ("Error: Out of memory. Exiting\n"); exit (1); } |