summaryrefslogtreecommitdiffstats
path: root/test/lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-09-02 11:34:16 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-09-02 11:34:16 +0100
commit75d2e6e32450b355f32a06745abc2f9446febce7 (patch)
treef4a71f7995f1e6e5b7c17c60284fa7f2e99c2b4b /test/lua
parent76b8e42e1cf49a03b057030541867f098dccac5b (diff)
downloadrspamd-75d2e6e32450b355f32a06745abc2f9446febce7.tar.gz
rspamd-75d2e6e32450b355f32a06745abc2f9446febce7.zip
[Minor] Some fixes for aarch64
Diffstat (limited to 'test/lua')
-rw-r--r--test/lua/unit/utf.lua35
1 files changed, 19 insertions, 16 deletions
diff --git a/test/lua/unit/utf.lua b/test/lua/unit/utf.lua
index 34217afa4..67ccfb4a7 100644
--- a/test/lua/unit/utf.lua
+++ b/test/lua/unit/utf.lua
@@ -181,22 +181,25 @@ context("UTF8 check functions", function()
local res = test_size(sz, false, 'ref')
assert_equal(res, 0)
end)
- test(string.format("Utf8 test %s %d buffer, %s", 'sse', sz, 'valid'), function()
- local res = test_size(sz, true, 'sse')
- assert_equal(res, 0)
- end)
- test(string.format("Utf8 test %s %d buffer, %s", 'sse', sz, 'invalid'), function()
- local res = test_size(sz, false, 'sse')
- assert_equal(res, 0)
- end)
- test(string.format("Utf8 test %s %d buffer, %s", 'avx2', sz, 'valid'), function()
- local res = test_size(sz, true, 'avx2')
- assert_equal(res, 0)
- end)
- test(string.format("Utf8 test %s %d buffer, %s", 'avx2', sz, 'invalid'), function()
- local res = test_size(sz, false, 'avx2')
- assert_equal(res, 0)
- end)
+
+ if jit.arch == 'x64' then
+ test(string.format("Utf8 test %s %d buffer, %s", 'sse', sz, 'valid'), function()
+ local res = test_size(sz, true, 'sse')
+ assert_equal(res, 0)
+ end)
+ test(string.format("Utf8 test %s %d buffer, %s", 'sse', sz, 'invalid'), function()
+ local res = test_size(sz, false, 'sse')
+ assert_equal(res, 0)
+ end)
+ test(string.format("Utf8 test %s %d buffer, %s", 'avx2', sz, 'valid'), function()
+ local res = test_size(sz, true, 'avx2')
+ assert_equal(res, 0)
+ end)
+ test(string.format("Utf8 test %s %d buffer, %s", 'avx2', sz, 'invalid'), function()
+ local res = test_size(sz, false, 'avx2')
+ assert_equal(res, 0)
+ end)
+ end
end
end) \ No newline at end of file