Accepting request 990903 from home:dirkmueller:Factory

- add tests-for-32bit.patch to fix testsuite on 32bit platforms

OBS-URL: https://build.opensuse.org/request/show/990903
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/curl?expand=0&rev=315
This commit is contained in:
Dirk Mueller 2022-07-24 19:39:09 +00:00 committed by Git OBS Bridge
parent c3baa6d82e
commit 2485d02a96
3 changed files with 36 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sun Jul 24 19:37:01 UTC 2022 - Dirk Müller <dmueller@suse.com>
- add tests-for-32bit.patch to fix testsuite on 32bit platforms
-------------------------------------------------------------------
Mon Jun 27 14:36:10 UTC 2022 - David Anes <david.anes@suse.com>

View File

@ -35,6 +35,7 @@ Patch1: dont-mess-with-rpmoptflags.patch
Patch2: curl-secure-getenv.patch
#PATCH-FIX-OPENSUSE bsc#1076446 protocol redirection not supported or disabled
Patch3: curl-disabled-redirect-protocol-message.patch
Patch4: https://github.com/curl/curl/commit/0484127805dc2cb7c743b67e017a725b5369227d.patch#/tests-for-32bit.patch
BuildRequires: libtool
BuildRequires: pkgconfig
Requires: libcurl4 = %{version}

30
tests-for-32bit.patch Normal file
View File

@ -0,0 +1,30 @@
From 0484127805dc2cb7c743b67e017a725b5369227d Mon Sep 17 00:00:00 2001
From: Daniel Stenberg <daniel@haxx.se>
Date: Sun, 17 Jul 2022 23:48:22 +0200
Subject: [PATCH] lib3026: reduce the number of threads to 100
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Down from 1000, to make it run and work in more systems.
Fixes #9172
Reported-by: Érico Nogueira Rolim
Closes #9173
---
tests/libtest/lib3026.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/libtest/lib3026.c b/tests/libtest/lib3026.c
index 43fe33529e1f0..496a23f3cabd6 100644
--- a/tests/libtest/lib3026.c
+++ b/tests/libtest/lib3026.c
@@ -30,7 +30,7 @@
#include <pthread.h>
#include <unistd.h>
-#define NUM_THREADS 1000
+#define NUM_THREADS 100
static void *run_thread(void *ptr)
{