|WARNING| pw163394 [PATCH 1/2] test: use inline helpers in buffer comparison macros
checkpatch at dpdk.org
checkpatch at dpdk.org
Wed Apr 29 16:46:02 CEST 2026
Test-Label: checkpatch
Test-Status: WARNING
http://dpdk.org/patch/163394
_coding style issues_
WARNING:TYPO_SPELLING: 'stdio' may be misspelled - perhaps 'studio'?
#138: FILE: app/test/test.h:12:
+#include <stdio.h>
^^^^^
WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided
#220: FILE: app/test/test.h:104:
+#define TEST_ASSERT_BUFFERS_ARE_EQUAL(a, b, len, msg, ...) do { \
+ if (!test_buffers_equal((a), (b), (len))) { \
+ printf("TestCase %s() line %d failed: " msg "
", \
+ __func__, __LINE__, ##__VA_ARGS__); \
+ TEST_TRACE_FAILURE(__FILE__, __LINE__, __func__); \
+ return TEST_FAILED; \
+ } \
} while (0)
WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided
#295: FILE: app/test/test.h:134:
+#define TEST_ASSERT_BUFFERS_ARE_EQUAL_BIT_OFFSET(a, b, len, off, msg, ...) \
+do { \
+ if (!test_buffers_equal_bit_offset((a), (b), (len), (off))) { \
+ printf("TestCase %s() line %d failed: " msg "
", \
+ __func__, __LINE__, ##__VA_ARGS__); \
+ TEST_TRACE_FAILURE(__FILE__, __LINE__, __func__); \
+ return TEST_FAILED; \
+ } \
} while (0)
total: 0 errors, 3 warnings, 173 lines checked
More information about the test-report
mailing list