File 0894-erts-Adjust-bif-test-timers-for-extreme-SMT-systems.patch of Package erlang
From 67e36c3e296984bf0aa02d77984094fc293e1124 Mon Sep 17 00:00:00 2001
From: Lukas Larsson <lukas@erlang.org>
Date: Fri, 24 Apr 2020 10:47:44 +0200
Subject: [PATCH 08/14] erts: Adjust bif test timers for extreme SMT systems
---
erts/emulator/test/timer_bif_SUITE.erl | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/erts/emulator/test/timer_bif_SUITE.erl b/erts/emulator/test/timer_bif_SUITE.erl
index 7d682897f8..2382dc992e 100644
--- a/erts/emulator/test/timer_bif_SUITE.erl
+++ b/erts/emulator/test/timer_bif_SUITE.erl
@@ -492,7 +492,7 @@ same_time_yielding(Config) when is_list(Config) ->
same_time_yielding(Config) when is_list(Config) ->
Mem = mem(),
SchdlrsOnln = erlang:system_info(schedulers_online),
- Tmo = erlang:monotonic_time(millisecond) + 3000,
+ Tmo = erlang:monotonic_time(millisecond) + 6000,
Tmrs = lists:map(fun (I) ->
process_flag(scheduler, (I rem SchdlrsOnln) + 1),
erlang:start_timer(Tmo, self(), hej, [{abs, true}])
@@ -536,7 +536,7 @@ same_time_yielding_with_cancel_other(Config) when is_list(Config) ->
do_cancel_tmrs(Tmo, Tmrs, Tester) ->
BeginCancel = erlang:convert_time_unit(Tmo,
millisecond,
- microsecond) - 100,
+ microsecond) - 500,
busy_wait_until(fun () ->
erlang:monotonic_time(microsecond) >= BeginCancel
end),
@@ -553,7 +553,7 @@ do_cancel_tmrs(Tmo, Tmrs, Tester) ->
same_time_yielding_with_cancel_test(Other, Accessor) ->
Mem = mem(),
SchdlrsOnln = erlang:system_info(schedulers_online),
- Tmo = erlang:monotonic_time(millisecond) + 3000,
+ Tmo = erlang:monotonic_time(millisecond) + 6000,
Tester = self(),
Cancelor = case Other of
false ->
--
2.16.4