[dpdk-test-report] |WARNING| pw35365 [PATCH v3 2/2] Add autotests for RIB library
checkpatch at dpdk.org
checkpatch at dpdk.org
Thu Feb 22 23:16:13 CET 2018
Test-Label: checkpatch
Test-Status: WARNING
http://dpdk.org/patch/35365
_coding style issues_
WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided
#68: FILE: test/test/test_rib.c:17:
+#define TEST_RIB_ASSERT(cond) do { \
+ if (!(cond)) { \
+ printf("Error at line %d:
", __LINE__); \
+ return -1; \
+ } \
+} while (0)
WARNING:ARRAY_SIZE: Prefer ARRAY_SIZE(tests)
#94: FILE: test/test/test_rib.c:43:
+#define NUM_RIB_TESTS (sizeof(tests)/sizeof(tests[0]))
WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided
#715: FILE: test/test/test_rib_lpm_comp.c:21:
+#define TEST_RIB_ASSERT(cond) do { \
+ if (!(cond)) { \
+ printf("Error at line %d:
", __LINE__); \
+ return -1; \
+ } \
+} while (0)
WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided
#908: FILE: test/test/test_rib_perf.c:21:
+#define TEST_RIB_ASSERT(cond) do { \
+ if (!(cond)) { \
+ printf("Error at line %d:
", __LINE__); \
+ return -1; \
+ } \
+} while (0)
total: 0 errors, 4 warnings, 986 lines checked
More information about the test-report
mailing list