From cf2c463e9356cce748e98d5b77a351598156ee9c Mon Sep 17 00:00:00 2001
From: Timur Safin <tsafin@tarantool.org>
Date: Thu, 11 Nov 2021 19:52:45 +0300
Subject: [PATCH] test: fix flaky app-tap/datetime.test.lua

Workaround for #6599 where we may randomly fail on AWS Graviton machines,
while it's working properly when jit disabled.

Follow-up to #5941
Relates to #6599
---
 test/app-tap/datetime.test.lua | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/test/app-tap/datetime.test.lua b/test/app-tap/datetime.test.lua
index e070c1e4aa..aafe2e4df5 100755
--- a/test/app-tap/datetime.test.lua
+++ b/test/app-tap/datetime.test.lua
@@ -5,6 +5,12 @@ local test = tap.test('errno')
 local date = require('datetime')
 local ffi = require('ffi')
 
+--[[
+    Workaround for #6599 where we may randomly fail on AWS Graviton machines,
+    while it's working properly when jit disabled.
+--]]
+if jit.arch == 'arm64' then jit.off() end
+
 test:plan(13)
 
 -- minimum supported date - -5879610-06-22
-- 
GitLab