From d855dc2a5faff1eafec287fa8748000d21949684 Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Fri, 21 Jun 2019 14:41:38 +1000 Subject: ctdb-tests: Don't compare an unsigned value with -1 The dummy reader should never be called, so contains an assert on the buffer length that should always trigger. Just abort() instead. Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- ctdb/tests/src/sock_io_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ctdb/tests') diff --git a/ctdb/tests/src/sock_io_test.c b/ctdb/tests/src/sock_io_test.c index d0e424f5620..ba4b6377d6d 100644 --- a/ctdb/tests/src/sock_io_test.c +++ b/ctdb/tests/src/sock_io_test.c @@ -178,7 +178,7 @@ static void test2_reader(int fd) static void test2_dummy_reader(uint8_t *buf, size_t buflen, void *private_data) { - assert(buflen == -1); + abort(); } static void test2_writer(struct sock_queue *queue) -- cgit v1.2.1