public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/curl] curl-v8.21.0-9: test3026: avoid pthread_create() failure due to resource exhaustion on i386
@ 2026-11-02 14:31 Kamil Dudka
0 siblings, 0 replies; only message in thread
From: Kamil Dudka @ 2026-11-02 14:31 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/curl
Branch : curl-v8.21.0-9
Commit : f052e58217c1c715344ec5f7e2ab1187fe2c0ec7
Author : Kamil Dudka <kdudka@redhat.com>
Date : 2022-06-28T09:04:19+02:00
Stats : +21/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/curl/c/f052e58217c1c715344ec5f7e2ab1187fe2c0ec7?branch=curl-v8.21.0-9
Log:
test3026: avoid pthread_create() failure due to resource exhaustion on i386
---
diff --git a/0102-curl-7.84.0-test3026.patch b/0102-curl-7.84.0-test3026.patch
index d92ed07..e00ef94 100644
--- a/0102-curl-7.84.0-test3026.patch
+++ b/0102-curl-7.84.0-test3026.patch
@@ -53,3 +53,18 @@ index fb80cc8..01f2ba5 100644
--
2.35.3
+diff --git a/tests/libtest/lib3026.c b/tests/libtest/lib3026.c
+index 43fe335..70cd7a4 100644
+--- a/tests/libtest/lib3026.c
++++ b/tests/libtest/lib3026.c
+@@ -63,8 +63,8 @@ int test(char *URL)
+ for(i = 0; i < tid_count; i++) {
+ int res = pthread_create(&tids[i], NULL, run_thread, &results[i]);
+ if(res) {
+- fprintf(stderr, "%s:%d Couldn't create thread, errno %d\n",
+- __FILE__, __LINE__, res);
++ fprintf(stderr, "%s:%d Couldn't create thread, i=%u, errno %d\n",
++ __FILE__, __LINE__, i, res);
+ tid_count = i;
+ test_failure = -1;
+ goto cleanup;
diff --git a/curl.spec b/curl.spec
index f3a2169..b2fd81e 100644
--- a/curl.spec
+++ b/curl.spec
@@ -227,6 +227,12 @@ printf "702\n703\n716\n" >> tests/data/DISABLED
printf "3000\n3001\n" >> tests/data/DISABLED
%endif
+# test3026: avoid pthread_create() failure due to resource exhaustion on i386
+%ifarch %{ix86}
+sed -e 's|NUM_THREADS 1000$|NUM_THREADS 256|' \
+ -i tests/libtest/lib3026.c
+%endif
+
# adapt test 323 for updated OpenSSL
sed -e 's|^35$|35,52|' -i tests/data/test323
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-02 14:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-02 14:31 [rpms/curl] curl-v8.21.0-9: test3026: avoid pthread_create() failure due to resource exhaustion on i386 Kamil Dudka
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox