aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2019-12-29 22:51:58 +0200
committerLasse Collin <lasse.collin@tukaani.org>2019-12-31 22:31:34 +0200
commita45badf0342666462cc6a7107a071418570ab773 (patch)
treed673fdef1e965de8c13ebc3644b6a59c1a86f921 /tests
parentScripts: Put /usr/xpg4/bin to the beginning of PATH on Solaris. (diff)
downloadxz-a45badf0342666462cc6a7107a071418570ab773.tar.xz
Tests: Hopefully fix test_check.c to work on EBCDIC systems.
Thanks to Daniel Richard G.
Diffstat (limited to '')
-rw-r--r--tests/test_check.c9
1 files 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