commit 75d2e6e: [Minor] Some fixes for aarch64
Vsevolod Stakhov
vsevolod at highsecure.ru
Wed Sep 2 10:35:06 UTC 2020
Author: Vsevolod Stakhov
Date: 2020-09-02 11:34:16 +0100
URL: https://github.com/rspamd/rspamd/commit/75d2e6e32450b355f32a06745abc2f9446febce7 (HEAD -> master)
[Minor] Some fixes for aarch64
---
contrib/librdns/util.c | 1 +
test/lua/unit/utf.lua | 35 +++++++++++++++++++----------------
2 files changed, 20 insertions(+), 16 deletions(-)
diff --git a/contrib/librdns/util.c b/contrib/librdns/util.c
index 60da2ad48..920e94b99 100644
--- a/contrib/librdns/util.c
+++ b/contrib/librdns/util.c
@@ -38,6 +38,7 @@
#include "ottery.h"
#include "util.h"
#include "logger.h"
+#include "rdns.h"
static int
rdns_make_socket_nonblocking (int fd)
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
More information about the Commits
mailing list