From 5f8324c9e90cc941104dcc9a8912a35e00dfe587 Mon Sep 17 00:00:00 2001 From: Elliott Slaughter Date: Mon, 5 Sep 2022 14:54:07 -0700 Subject: [PATCH] Only run cconv_array.t for int16, int32, float up to 8 on macOS M1 (#611) --- tests/cconv_array.t | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/tests/cconv_array.t b/tests/cconv_array.t index 6fdd3a90..a392f804 100644 --- a/tests/cconv_array.t +++ b/tests/cconv_array.t @@ -60,16 +60,23 @@ local function run_test_case(typ, N) end end -local int8_max_args = 11 +local MAX_N_INT8 = 11 +local MAX_N_SMALL = 32 local ffi = require('ffi') if ffi.os == 'OSX' and ffi.arch == 'arm64' then - int8_max_args = 8 -- https://github.com/terralang/terra/issues/604 + MAX_N_INT8 = 8 -- https://github.com/terralang/terra/issues/604 + MAX_N_SMALL = 8 -- https://github.com/terralang/terra/issues/604 end -for N = 0, int8_max_args do +for N = 0, MAX_N_INT8 do run_test_case(int8, N) end -for _, typ in ipairs({int16, int32, int64, float, double}) do +for _, typ in ipairs({int16, int32, float}) do + for N = 0, MAX_N_SMALL do + run_test_case(typ, N) + end +end +for _, typ in ipairs({int64, double}) do for N = 0, 32 do run_test_case(typ, N) end