File 0524-emulator-mtx_SUITE-runtime-limit-scale-on-no-schedul.patch of Package erlang

From 5631063c5bc8e763d5570672ad5b583bf8527643 Mon Sep 17 00:00:00 2001
From: frazze-jobb <frazze@erlang.org>
Date: Mon, 31 Oct 2022 12:57:52 +0100
Subject: [PATCH] emulator: mtx_SUITE runtime limit scale on #no schedulers.

---
 erts/emulator/test/mtx_SUITE.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/erts/emulator/test/mtx_SUITE.erl b/erts/emulator/test/mtx_SUITE.erl
index 1100f6cf46..7bf24cf63d 100644
--- a/erts/emulator/test/mtx_SUITE.erl
+++ b/erts/emulator/test/mtx_SUITE.erl
@@ -275,7 +275,7 @@ hammer_sched_rwlock_test(FreqRead, LockCheck, Blocking, WaitLocked, WaitUnlocked
                 _ ->
                     {_, RunTime} = statistics(runtime),
                     io:format("RunTime=~p~n", [RunTime]),
-                    true = RunTime < 700,
+                    true = RunTime < max(700,8*Onln),
                     {comment,
                      "Run-time during test was "
                      ++ integer_to_list(RunTime)
-- 
2.35.3

openSUSE Build Service is sponsored by