mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2025-12-29 03:20:13 +01:00
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:
parent
549b1f8d4b
commit
6dfb12c7d7
1 changed files with 1 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue