summaryrefslogtreecommitdiff
path: root/include/test_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/test_util.h')
-rw-r--r--include/test_util.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/test_util.h b/include/test_util.h
index fe7ede5f9b..cf98dd222c 100644
--- a/include/test_util.h
+++ b/include/test_util.h
@@ -44,12 +44,12 @@
#define TEST_ASSERT_ARRAY_EQ(s, d, n) \
do { \
- int i; \
- for (i = 0; i < n; ++i) \
- if ((s)[i] != (d)[i]) { \
+ int __i; \
+ for (__i = 0; __i < n; ++__i) \
+ if ((s)[__i] != (d)[__i]) { \
ccprintf("%d: ASSERT_ARRAY_EQ failed at " \
- "index=%d: %d != %d\n", __LINE__, i, \
- (int)(s)[i], (int)(d)[i]); \
+ "index=%d: %d != %d\n", __LINE__, \
+ __i, (int)(s)[__i], (int)(d)[__i]); \
return EC_ERROR_UNKNOWN; \
} \
} while (0)