summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJett Rink <jettrink@chromium.org>2020-11-11 12:22:01 -0700
committerRajat Jain <rajatja@google.com>2020-11-11 19:30:15 +0000
commit90caed85bc8f2c0d2b05b1977e1dd02db614a41b (patch)
tree2239a1e67de38c4eb27b0b2a3838ef9ed1a70a09 /test
parent013740e2ec6e4452602f63bd873f53dfaa6d1edb (diff)
downloadchrome-ec-90caed85bc8f2c0d2b05b1977e1dd02db614a41b.tar.gz
Revert "zephyr: forward cros_crc8 to zephyrs crc8 impl"
Something slipped through CQ coverage. Need to figure out, but in the mean time, revert the 3 CLs that seemed to have caused the issue. BRANCH=none BUG=chromium:1147953 TEST=none This reverts commit 22ee9a346718a9a07955fd81b0d03c4dde5b2ec8. Change-Id: I5617e39204a7c05001363d5780fa2f52e3e1ea05 Signed-off-by: Jett Rink <jettrink@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2533355
Diffstat (limited to 'test')
-rw-r--r--test/crc.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/test/crc.c b/test/crc.c
index 3f24c1a7e4..3521bce4a9 100644
--- a/test/crc.c
+++ b/test/crc.c
@@ -8,7 +8,6 @@
#include "common.h"
#include "console.h"
#include "crc.h"
-#include "crc8.h"
#include "test_util.h"
#include "util.h"
@@ -64,18 +63,6 @@ static int test_kat0(void)
return EC_SUCCESS;
}
-static int test_cros_crc8(void)
-{
- uint8_t buffer[10] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 8 };
-
- int crc = cros_crc8(buffer, 10);
-
- /* Verifies polynomial values of 0x07 representing x^8 + x^2 + x + 1 */
- TEST_EQ(crc, 170, "%d");
-
- return EC_SUCCESS;
-}
-
void run_test(int argc, char **argv)
{
test_reset();
@@ -83,7 +70,6 @@ void run_test(int argc, char **argv)
RUN_TEST(test_static_version);
RUN_TEST(test_8);
RUN_TEST(test_kat0);
- RUN_TEST(test_cros_crc8);
test_print_result();
}