From 8d16b68c4d4394cf9266ca32876434e6708d96b6 Mon Sep 17 00:00:00 2001 From: Ondrej Holy Date: Tue, 31 Mar 2026 08:41:06 +0200 Subject: [PATCH] Increase timeout for TestSynchCritical Resolves: RHEL-155980 --- freerdp.spec | 4 +++ ...crease-timeout-for-TestSynchCritical.patch | 30 +++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 winpr-synch-increase-timeout-for-TestSynchCritical.patch diff --git a/freerdp.spec b/freerdp.spec index d2f2de4..ae50314 100644 --- a/freerdp.spec +++ b/freerdp.spec @@ -186,6 +186,9 @@ Patch: channel-rdpsnd-only-clean-up-thread-before-free.patch Patch: codec-nsc-limit-copy-area-in-nsc_process_message.patch Patch: codec-nsc-fix-use-of-nsc_process_message.patch +# https://github.com/FreeRDP/FreeRDP/commit/907ca47e40583a7788674bb2f06258edd0c34223 +Patch: winpr-synch-increase-timeout-for-TestSynchCritical.patch + BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: alsa-lib-devel @@ -511,6 +514,7 @@ find %{buildroot} -name "*.a" -delete %changelog * Tue Mar 31 2026 Ondrej Holy - 2:3.10.3-12 - Fix use of nsc_process_message +- Increase timeout for TestSynchCritical Resolves: RHEL-155980 * Fri Mar 27 2026 Ondrej Holy - 2:3.10.3-11 diff --git a/winpr-synch-increase-timeout-for-TestSynchCritical.patch b/winpr-synch-increase-timeout-for-TestSynchCritical.patch new file mode 100644 index 0000000..64805f3 --- /dev/null +++ b/winpr-synch-increase-timeout-for-TestSynchCritical.patch @@ -0,0 +1,30 @@ +From 907ca47e40583a7788674bb2f06258edd0c34223 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Dan=20Hor=C3=A1k?= +Date: Fri, 22 Aug 2025 19:14:05 +0200 +Subject: [PATCH] [winpr,synch] increase timeout for TestSynchCritical + +Increase the deadlock detection timeout in TestSynchCritical to accommodate +longer runtime on systems with large number of CPUs/threads. The usual test +run time when the threads are finishing correctly won't change. + +Fixes: https://github.com/FreeRDP/FreeRDP/issues/11800 +--- + winpr/libwinpr/synch/test/TestSynchCritical.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/winpr/libwinpr/synch/test/TestSynchCritical.c b/winpr/libwinpr/synch/test/TestSynchCritical.c +index 139885a81..b44a70a1e 100644 +--- a/winpr/libwinpr/synch/test/TestSynchCritical.c ++++ b/winpr/libwinpr/synch/test/TestSynchCritical.c +@@ -8,7 +8,7 @@ + #include + #include + +-#define TEST_SYNC_CRITICAL_TEST1_RUNTIME_MS 50 ++#define TEST_SYNC_CRITICAL_TEST1_RUNTIME_MS 100 + #define TEST_SYNC_CRITICAL_TEST1_RUNS 4 + + static CRITICAL_SECTION critical; +-- +2.53.0 +