aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/model_test.c24
1 files changed, 20 insertions, 4 deletions
diff --git a/tests/model_test.c b/tests/model_test.c
index 60dc4579..9a4cd906 100644
--- a/tests/model_test.c
+++ b/tests/model_test.c
@@ -276,22 +276,38 @@ test_read(SerdWorld* world,
}
static SerdStatus
-unexpected_error(void* handle, const SerdMessage* msg)
+unexpected_error(void* handle,
+ SerdStatus status,
+ SerdLogLevel level,
+ const SerdCursor* cursor,
+ const char* fmt,
+ va_list args)
{
(void)handle;
+ (void)status;
+ (void)level;
+ (void)cursor;
fprintf(stderr, "error: ");
- vfprintf(stderr, msg->fmt, *msg->args);
+ vfprintf(stderr, fmt, args);
return SERD_SUCCESS;
}
static SerdStatus
-expected_error(void* handle, const SerdMessage* msg)
+expected_error(void* handle,
+ SerdStatus status,
+ SerdLogLevel level,
+ const SerdCursor* cursor,
+ const char* fmt,
+ va_list args)
{
(void)handle;
+ (void)status;
+ (void)level;
+ (void)cursor;
fprintf(stderr, "expected: ");
- vfprintf(stderr, msg->fmt, *msg->args);
+ vfprintf(stderr, fmt, args);
return SERD_SUCCESS;
}