aboutsummaryrefslogtreecommitdiffstats
path: root/tests/serd_test.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-08-15 18:22:12 +0200
committerDavid Robillard <d@drobilla.net>2020-08-15 22:53:00 +0200
commit7221394ae12f87533261ecaae725821fab6db40d (patch)
treeb19440b7ce7552c1ecc94c9f02bc99ec128dc65e /tests/serd_test.c
parent8cfbb485d367c861f20aa51261f4b41e78b144b6 (diff)
downloadserd-7221394ae12f87533261ecaae725821fab6db40d.tar.gz
serd-7221394ae12f87533261ecaae725821fab6db40d.tar.bz2
serd-7221394ae12f87533261ecaae725821fab6db40d.zip
Clean up reader error handling
Diffstat (limited to 'tests/serd_test.c')
-rw-r--r--tests/serd_test.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/serd_test.c b/tests/serd_test.c
index 15500a0e..3d6b6ac9 100644
--- a/tests/serd_test.c
+++ b/tests/serd_test.c
@@ -148,7 +148,7 @@ test_read_chunks(void)
// Read terminator
st = serd_reader_read_chunk(reader);
- assert(st == SERD_SUCCESS); // FIXME: return SERD_FAILURE?
+ assert(st == SERD_FAILURE);
assert(rt->n_statements == 1);
// Read second statement (after null terminator)
@@ -158,12 +158,12 @@ test_read_chunks(void)
// Read terminator
st = serd_reader_read_chunk(reader);
- assert(st == SERD_SUCCESS); // FIXME: return SERD_FAILURE?
+ assert(st == SERD_FAILURE);
assert(rt->n_statements == 2);
// EOF
st = serd_reader_read_chunk(reader);
- assert(st == SERD_SUCCESS); // FIXME: return SERD_FAILURE?
+ assert(st == SERD_FAILURE);
assert(rt->n_statements == 2);
serd_reader_free(reader);