git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0399ce
)
app/test: fix assert macro
author
Bruce Richardson
<bruce.richardson@intel.com>
Wed, 17 Dec 2014 17:06:53 +0000
(17:06 +0000)
committer
Thomas Monjalon
<thomas.monjalon@6wind.com>
Wed, 17 Dec 2014 23:26:08 +0000
(
00:26
+0100)
One of the test assertion macros was missing the "do" part of the
do-while. This issue was picked up by clang reporting an empty while
loop body for the closing while of the do-while pair.
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
app/test/test.h
patch
|
blob
|
history
diff --git
a/app/test/test.h
b/app/test/test.h
index
72e67b9
..
896f7db
100644
(file)
--- a/
app/test/test.h
+++ b/
app/test/test.h
@@
-44,7
+44,7
@@
} \
} while (0)
-#define TEST_ASSERT_EQUAL(a, b, msg, ...)
{
\
+#define TEST_ASSERT_EQUAL(a, b, msg, ...)
do {
\
if (!(a == b)) { \
printf("TestCase %s() line %d failed: " \
msg "\n", __func__, __LINE__, ##__VA_ARGS__); \