summaryrefslogtreecommitdiff
path: root/include/test_util.h
diff options
context:
space:
mode:
authorVic Yang <victoryang@chromium.org>2013-07-04 15:21:16 +0800
committerChromeBot <chrome-bot@google.com>2013-07-11 04:26:14 -0700
commit4d270c1507040e1ba45b597310167c172e915ef6 (patch)
tree7ed98de429cc2fdcfa78ecd51baa79da84752d73 /include/test_util.h
parent62f2a33ff2ff37ad8226fd854712206f3ccd745e (diff)
downloadchrome-ec-4d270c1507040e1ba45b597310167c172e915ef6.tar.gz
Add thermal host and console command test
This checks the functionality of thermal engine related host and console commands. BUG=chrome-os-partner:19236 TEST=Pass all tests. BRANCH=None Change-Id: I604ed3bfed3549b2573fac65da83450acd3f2797 Signed-off-by: Vic Yang <victoryang@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/60964 Reviewed-by: Randall Spangler <rspangler@chromium.org>
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)