aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-05-12 20:39:23 +0200
committerDavid Robillard <d@drobilla.net>2019-04-13 19:15:32 +0200
commitfea20a9af56d5b7640ced14cde92fe6746291502 (patch)
tree848c9e3a4e3e33d0b65ef39142d0ff8507af3391 /tests
parent29cfc326f8f64d8327597f2218f0caefeed4560f (diff)
downloadserd-fea20a9af56d5b7640ced14cde92fe6746291502.tar.gz
serd-fea20a9af56d5b7640ced14cde92fe6746291502.tar.bz2
serd-fea20a9af56d5b7640ced14cde92fe6746291502.zip
Use a fixed-size reader stack
This improves performance, and makes the reader more suitable for embedded or network-facing applications, at the cost of requiring the user to specify a maximum stack size.
Diffstat (limited to 'tests')
-rw-r--r--tests/serd_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/serd_test.c b/tests/serd_test.c
index a77bcbbb..d9fc1388 100644
--- a/tests/serd_test.c
+++ b/tests/serd_test.c
@@ -257,7 +257,7 @@ main(void)
const char* msg = NULL;
assert(!strcmp((msg = serd_strerror(SERD_SUCCESS)), "Success"));
- for (int i = SERD_FAILURE; i <= SERD_ERR_INTERNAL; ++i) {
+ for (int i = SERD_FAILURE; i <= SERD_ERR_OVERFLOW; ++i) {
msg = serd_strerror((SerdStatus)i);
assert(strcmp(msg, "Success"));
}
@@ -570,7 +570,7 @@ main(void)
ReaderTest rt = { 0, NULL };
SerdSink sink = { &rt, NULL, NULL, test_sink, NULL };
- SerdReader* reader = serd_reader_new(world, SERD_TURTLE, &sink);
+ SerdReader* reader = serd_reader_new(world, SERD_TURTLE, &sink, 4096);
assert(reader);
SerdNode* g = serd_node_new_uri("http://example.org/");