]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Remove needless benign redefinition of TEST_CHECK_SLEN()
authorJames Jones <jejones3141@gmail.com>
Mon, 12 Jun 2023 15:39:08 +0000 (10:39 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 12 Jun 2023 16:35:31 +0000 (12:35 -0400)
src/lib/util/acutest_helpers.h

index 7c09c22b9728429665ff87b3688a3f19b31692db..53c961ac7b58283cc08278dbd63a0b72dd00036a 100644 (file)
@@ -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 { \