[dpdk-test-report] |WARNING| pw33571 [PATCH v5 01/11] eal: add common test assert macros

checkpatch at dpdk.org checkpatch at dpdk.org
Thu Jan 11 11:24:12 CET 2018


Test-Label: checkpatch
Test-Status: WARNING
http://dpdk.org/patch/33571

_coding style issues_


WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided
#86: FILE: lib/librte_eal/common/include/rte_test.h:19:
+#define RTE_TEST_ASSERT(cond, msg, ...) do {                                  \
+	if (!(cond)) {                                                        \
+		RTE_LOG(DEBUG, EAL, "Test assert %s line %d failed: "         \
+				msg "
", __func__, __LINE__, ##__VA_ARGS__); \
+		RTE_TEST_TRACE_FAILURE(__FILE__, __LINE__, __func__);         \
+		return -1;                                                    \
+	}                                                                     \
+} while (0)

total: 0 errors, 1 warnings, 147 lines checked


More information about the test-report mailing list