aboutsummaryrefslogtreecommitdiffstats
path: root/testing/handlebars/fix-test-failure-on-ppc64le.patch
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-07-26 18:09:13 +0200
committerJakub Jirutka <jakub@jirutka.cz>2017-07-26 18:09:51 +0200
commitab445e3c175b44a854e99b319e2906ef4a39c6c0 (patch)
tree8b632e88cd73e835cc30b14812ff1d1c6946c9db /testing/handlebars/fix-test-failure-on-ppc64le.patch
parentda228851ed762b6a7924b310bab03d0638f73129 (diff)
downloadaports-ab445e3c175b44a854e99b319e2906ef4a39c6c0.tar.bz2
aports-ab445e3c175b44a854e99b319e2906ef4a39c6c0.tar.xz
testing/handlebars: fix test failure on ppc64le
Diffstat (limited to 'testing/handlebars/fix-test-failure-on-ppc64le.patch')
-rw-r--r--testing/handlebars/fix-test-failure-on-ppc64le.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/testing/handlebars/fix-test-failure-on-ppc64le.patch b/testing/handlebars/fix-test-failure-on-ppc64le.patch
new file mode 100644
index 0000000000..2bb2807707
--- /dev/null
+++ b/testing/handlebars/fix-test-failure-on-ppc64le.patch
@@ -0,0 +1,25 @@
+From 931ad82c17984935decebacd3283e9d26ca749cb Mon Sep 17 00:00:00 2001
+From: John Boehr <jbboehr@gmail.com>
+Date: Tue, 25 Jul 2017 20:02:12 -0700
+Subject: [PATCH] Should fix test failure on Alpine Linux ppc64le
+
+#67
+
+Patch-Source: https://github.com/jbboehr/handlebars.c/pull/68
+---
+ tests/test_spec_handlebars_parser.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/tests/test_spec_handlebars_parser.c b/tests/test_spec_handlebars_parser.c
+index 6345e3a..7c6472d 100644
+--- a/tests/test_spec_handlebars_parser.c
++++ b/tests/test_spec_handlebars_parser.c
+@@ -160,7 +160,7 @@ static int loadSpec(const char * filename) {
+
+ // Allocate tests array
+ tests_size = array_len + 1;
+- tests = handlebars_talloc_array(rootctx, struct parser_test, tests_size);
++ tests = talloc_zero_array(rootctx, struct parser_test, tests_size);
+
+ // Iterate over array
+ for( int i = 0; i < array_len; i++ ) {