From 02bc66c5fa8693d9d28bc3171f3d5937f86cfdfb Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 12 May 2018 12:48:26 +0200 Subject: Test serd_strlen() with NULL flags --- tests/serd_test.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/serd_test.c b/tests/serd_test.c index 945fefe3..a987b153 100644 --- a/tests/serd_test.c +++ b/tests/serd_test.c @@ -244,6 +244,10 @@ main(void) str, len, flags); } + if (serd_strlen(str, &n_bytes, NULL) != 5) { + FAILF("Bad serd_strlen(%s) n_bytes=%zu no flags\n", str, n_bytes); + } + // Test serd_strerror const uint8_t* msg = NULL; -- cgit v1.2.1