summaryrefslogtreecommitdiff
path: root/test/cairo-test.c
diff options
context:
space:
mode:
authorAndrea Canciani <ranma42@gmail.com>2011-10-27 09:49:25 +0200
committerAndrea Canciani <ranma42@gmail.com>2011-11-12 20:49:08 +0100
commit6dfb12c7d7c4ada716c86dbb9af3446d9880ed36 (patch)
tree3798d691a5e2632d88d57be30a77f863b1d0c6e7 /test/cairo-test.c
parent549b1f8d4bf6e20cecd281343f5e4630938697cc (diff)
downloadcairo-6dfb12c7d7c4ada716c86dbb9af3446d9880ed36.tar.gz
test: Reuse cairo_test_logv()
cairo_test_log() can be implemented on top of cairo_test_logv() to ensure that their behavior is consistent.
Diffstat (limited to 'test/cairo-test.c')
-rw-r--r--test/cairo-test.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/cairo-test.c b/test/cairo-test.c
index 1a0c84510..a5ef6336a 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);
}