[cairo] [PATCH 07/12] test: Reuse cairo_test_logv()

Andrea Canciani ranma42 at gmail.com
Sat Nov 12 13:19:59 PST 2011


cairo_test_log() can be implemented on top of cairo_test_logv() to
ensure that their behavior is consistent.
---
 test/cairo-test.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/test/cairo-test.c b/test/cairo-test.c
index 1a0c845..a5ef633 100644
--- a/test/cairo-test.c
+++ b/test/cairo-test.c
@@ -261,10 +261,9 @@ void
 cairo_test_log (const cairo_test_context_t *ctx, const char *fmt, ...)
 {
     va_list va;
-    FILE *file = ctx && ctx->log_file ? ctx->log_file : stderr;
 
     va_start (va, fmt);
-    vfprintf (file, fmt, va);
+    cairo_test_logv (ctx, fmt, va);
     va_end (va);
 }
 
-- 
1.7.5.4



More information about the cairo mailing list