summaryrefslogtreecommitdiff
path: root/test/crc32.c
diff options
context:
space:
mode:
authorJett Rink <jettrink@chromium.org>2019-04-16 13:43:03 -0600
committerchrome-bot <chrome-bot@chromium.org>2019-04-24 15:51:44 -0700
commitc6254cee9684a92c81863b4576312cf8db97cab6 (patch)
treefb6a77bc2396343a2bee98f80b001c192d3a060f /test/crc32.c
parente08a71fd05bfc9e32dd64b7e15840e7232d72788 (diff)
downloadchrome-ec-c6254cee9684a92c81863b4576312cf8db97cab6.tar.gz
tests: make lighbar test easier to debug
This test was failing and it is easier to comment out tests that are passing to debug. I needed to add a precondition so each test would pass on its own. I also needed to remove the static modifier to allow each test to be comment out. BRANCH=none BUG=none TEST=builds and passes Change-Id: Ib2a7c0948aee363e1552835222a9700225993e46 Signed-off-by: Jett Rink <jettrink@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1570605 Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com> Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Diffstat (limited to 'test/crc32.c')
-rw-r--r--test/crc32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/crc32.c b/test/crc32.c
index e3f6f8d5c6..986a1c60c3 100644
--- a/test/crc32.c
+++ b/test/crc32.c
@@ -12,7 +12,7 @@
#include "util.h"
// test that static version matches context version
-static int test_static(void)
+static int test_static_version(void)
{
uint32_t crc;
const uint32_t input = 0xdeadbeef;
@@ -67,7 +67,7 @@ void run_test(void)
{
test_reset();
- RUN_TEST(test_static);
+ RUN_TEST(test_static_version);
RUN_TEST(test_8);
RUN_TEST(test_kat0);