summaryrefslogtreecommitdiff
path: root/test/xmalloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/xmalloc.c')
-rw-r--r--test/xmalloc.c5
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);
}