summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorVincent Palatin <vpalatin@chromium.org>2014-03-06 15:50:07 -0800
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-03-26 05:33:12 +0000
commitd430602af8db20b8c8f173178ed0068f06a93926 (patch)
treeeed08d95f614b98e74dee184669e4cc896f06889 /test
parentabe490b5cb3d2fc343137d9e98d8fd22e37e6556 (diff)
downloadchrome-ec-d430602af8db20b8c8f173178ed0068f06a93926.tar.gz
test: fix scratchpad testing on target
On STM32, the scratchpad size is limited to the 16 LSB (due to a limitation on STM32F100). Let's adapt the test to pass also on those targets. Signed-off-by: Vincent Palatin <vpalatin@chromium.org> BRANCH=none BUG=none TEST=run "utils" test on STM32 Discovery board. Change-Id: I04e9ae39b38afa14e4e72faa0e544c991c9ec1df Reviewed-on: https://chromium-review.googlesource.com/189152 Reviewed-by: Vic Yang <victoryang@chromium.org> Reviewed-by: Randall Spangler <rspangler@chromium.org> Commit-Queue: Vincent Palatin <vpalatin@chromium.org> Tested-by: Vincent Palatin <vpalatin@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/191513 Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'test')
-rw-r--r--test/utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/utils.c b/test/utils.c
index abc33c8d69..e7de7f8b3d 100644
--- a/test/utils.c
+++ b/test/utils.c
@@ -339,8 +339,8 @@ static int test_shared_mem(void)
static int test_scratchpad(void)
{
- system_set_scratchpad(0xfeedfeed);
- TEST_ASSERT(system_get_scratchpad() == 0xfeedfeed);
+ system_set_scratchpad(0xfeed);
+ TEST_ASSERT(system_get_scratchpad() == 0xfeed);
return EC_SUCCESS;
}