diff options
author | David Robillard <d@drobilla.net> | 2019-04-13 20:21:40 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-04-13 20:21:40 +0200 |
commit | 4de972d203f804dd5b1ae5c82ca01359f7d285a6 (patch) | |
tree | 1912a58e979a7d17500a0223b514fb802475e54c /tests | |
parent | 72b0caa0ca029b83a5a1ad87d9035faea7897c72 (diff) | |
download | serd-remove-message.tar.gz serd-remove-message.tar.bz2 serd-remove-message.zip |
WIP: Remove SerdMessageremove-message
Diffstat (limited to 'tests')
-rw-r--r-- | tests/model_test.c | 24 |
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; } |