From 8b72950a6b2e2a36c2d8fdc8857564b57191b088 Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Sun, 29 Dec 2019 22:51:58 +0200 Subject: [PATCH] Tests: Hopefully fix test_check.c to work on EBCDIC systems. Thanks to Daniel Richard G. --- tests/test_check.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/test_check.c b/tests/test_check.c index 7d4a3607..58813a58 100644 --- a/tests/test_check.c +++ b/tests/test_check.c @@ -15,8 +15,13 @@ #include "tests.h" -static const uint8_t test_string[9] = "123456789"; -static const uint8_t test_unaligned[12] = "xxx123456789"; +// These must be specified as numbers so that the test works on EBCDIC +// systems too. +// static const uint8_t test_string[9] = "123456789"; +// static const uint8_t test_unaligned[12] = "xxx123456789"; +static const uint8_t test_string[9] = { 49, 50, 51, 52, 53, 54, 55, 56, 57 }; +static const uint8_t test_unaligned[12] + = { 120, 120, 120, 49, 50, 51, 52, 53, 54, 55, 56, 57 }; static bool