aboutsummaryrefslogtreecommitdiffstats
path: root/testing/handlebars/fix-test-failure-on-ppc64le.patch
diff options
context:
space:
mode:
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++ ) {