From c4e1eb61f7b8262030344712537c8918f4949a20 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 15 Aug 2020 20:22:26 +0200 Subject: Handle read errors more precisely --- tests/serd_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/serd_test.c') diff --git a/tests/serd_test.c b/tests/serd_test.c index e5e1ae18..7a9e67bd 100644 --- a/tests/serd_test.c +++ b/tests/serd_test.c @@ -355,7 +355,7 @@ test_strerror(void) { const char* msg = serd_strerror(SERD_SUCCESS); assert(!strcmp(msg, "Success")); - for (int i = SERD_FAILURE; i <= SERD_ERR_INVALID; ++i) { + for (int i = SERD_FAILURE; i <= SERD_ERR_NO_DATA; ++i) { msg = serd_strerror((SerdStatus)i); assert(strcmp(msg, "Success")); } -- cgit v1.2.1