test: Reuse cairo_test_logv()

cairo_test_log() can be implemented on top of cairo_test_logv() to
ensure that their behavior is consistent.
This commit is contained in:
Andrea Canciani 2011-10-27 09:49:25 +02:00
parent 549b1f8d4b
commit 6dfb12c7d7

View file

@ -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);
}