From be329e9b25677a00513961f32f396c239b87bcf5 Mon Sep 17 00:00:00 2001 From: Evan Wilde Date: Wed, 3 Sep 2025 10:33:28 -0700 Subject: [PATCH] BSDTest: Fix uint32 'not' behavior Accidentally pointed the test_uint32_not macro at the _test_uint32 implementation instead of the _test_uint32_not, so the condition is wrong. --- tests/bsdtests.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/bsdtests.h b/tests/bsdtests.h index 6c579efa1..3437a51ed 100644 --- a/tests/bsdtests.h +++ b/tests/bsdtests.h @@ -112,7 +112,7 @@ void _test_uint32(const char* file, long line, const char* desc, uint32_t actual void test_uint32_format(uint32_t actual, uint32_t expected, const char *format, ...) __printflike(3,4); void _test_uint32_not(const char* file, long line, const char* desc, uint32_t actual, uint32_t unexpected); -#define test_uint32_not(a,b,c) _test_uint32(__SOURCE_FILE__, __LINE__, a, b, c) +#define test_uint32_not(a,b,c) _test_uint32_not(__SOURCE_FILE__, __LINE__, a, b, c) void test_uint32_not_format(uint32_t actual, uint32_t unexpected, const char *format, ...) __printflike(3,4); void _test_int32(const char* file, long line, const char* desc, int32_t actual, int32_t expected);