Increase timeout for TestSynchCritical

Resolves: RHEL-155980
This commit is contained in:
Ondrej Holy 2026-03-31 08:41:06 +02:00
parent d5311669e7
commit 8d16b68c4d
2 changed files with 34 additions and 0 deletions

View File

@ -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 <oholy@redhat.com> - 2:3.10.3-12
- Fix use of nsc_process_message
- Increase timeout for TestSynchCritical
Resolves: RHEL-155980
* Fri Mar 27 2026 Ondrej Holy <oholy@redhat.com> - 2:3.10.3-11

View File

@ -0,0 +1,30 @@
From 907ca47e40583a7788674bb2f06258edd0c34223 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Dan=20Hor=C3=A1k?= <dan@danny.cz>
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 <winpr/thread.h>
#include <winpr/interlocked.h>
-#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