From: James Jones Date: Mon, 12 Jun 2023 15:39:08 +0000 (-0500) Subject: Remove needless benign redefinition of TEST_CHECK_SLEN() X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11b349cc75386ab9f6d5d3d75d7200d6f02efcd1;p=thirdparty%2Ffreeradius-server.git Remove needless benign redefinition of TEST_CHECK_SLEN() --- diff --git a/src/lib/util/acutest_helpers.h b/src/lib/util/acutest_helpers.h index 7c09c22b972..53c961ac7b5 100644 --- a/src/lib/util/acutest_helpers.h +++ b/src/lib/util/acutest_helpers.h @@ -50,13 +50,6 @@ do { \ TEST_MSG("Expected ret : %"PRId64, (int64_t)_exp); \ TEST_MSG("Got ret : %"PRId64, (int64_t)_our_got); \ } while(0) -#define TEST_CHECK_SLEN(_got, _exp) \ -do { \ - ssize_t _our_got = (_got); \ - TEST_CHECK_(_exp == _our_got, "%s", #_got); \ - TEST_MSG("Expected length : %zd", (ssize_t)_exp); \ - TEST_MSG("Got length : %zd", (ssize_t)_our_got); \ -} while(0) #define TEST_CHECK_STRCMP(_got, _exp) \ do { \