test3026: avoid pthread_create() failure due to resource exhaustion on i386
This commit is contained in:
parent
9ba06cfc6e
commit
f052e58217
@ -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;
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user