* [dpdk-test-report] |WARNING| pw31992 [PATCH v3 3/5] bbdev: test applications
[not found] <1512682857-79467-3-git-send-email-amr.mokhtar@intel.com>
@ 2017-12-07 21:41 ` checkpatch
0 siblings, 0 replies; only message in thread
From: checkpatch @ 2017-12-07 21:41 UTC (permalink / raw)
To: test-report; +Cc: Amr Mokhtar
Test-Label: checkpatch
Test-Status: WARNING
http://dpdk.org/patch/31992
_coding style issues_
WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided
#544: FILE: app/test-bbdev/main.h:51:
+#define TEST_ASSERT(cond, msg, ...) do { \
+ if (!(cond)) { \
+ printf("TestCase %s() line %d failed: " \
+ msg "
", __func__, __LINE__, ##__VA_ARGS__); \
+ return TEST_FAILED; \
+ } \
+} while (0)
WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided
#553: FILE: app/test-bbdev/main.h:60:
+#define TEST_ASSERT_BUFFERS_ARE_EQUAL(a, b, len, msg, ...) do { \
+ if (memcmp((a), (b), len)) { \
+ printf("TestCase %s() line %d failed: " \
+ msg "
", __func__, __LINE__, ##__VA_ARGS__); \
+ rte_memdump(stdout, "Buffer A", (a), len); \
+ rte_memdump(stdout, "Buffer B", (b), len); \
+ return TEST_FAILED; \
+ } \
+} while (0)
WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided
#563: FILE: app/test-bbdev/main.h:70:
+#define TEST_ASSERT_SUCCESS(val, msg, ...) do { \
+ typeof(val) _val = (val); \
+ if (!(_val == 0)) { \
+ printf("TestCase %s() line %d failed (err %d): " \
+ msg "
", __func__, __LINE__, _val, \
+ ##__VA_ARGS__); \
+ return TEST_FAILED; \
+ } \
+} while (0)
WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided
#576: FILE: app/test-bbdev/main.h:83:
+#define TEST_ASSERT_NOT_NULL(val, msg, ...) do { \
+ if ((val) == NULL) { \
+ printf("TestCase %s() line %d failed (null): " \
+ msg "
", __func__, __LINE__, ##__VA_ARGS__); \
+ return TEST_FAILED; \
+ } \
+} while (0)
total: 0 errors, 4 warnings, 5535 lines checked
^ permalink raw reply [flat|nested] only message in thread