From 3759b71dc8b175ba02bc2f87e4f426ceed342d42 Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Wed, 6 Jul 2022 18:00:13 +0200 Subject: gnu: curl@7.84.0: Reduce lib3026 resource use on 32-bit platforms. This is a followup to c145e51844bf52eb77cdc969a0fe30a48755b29e. See discussion at . * gnu/packages/curl.scm (curl-7.84.0)[arguments]: Remove 'skip-failing-tests' and add 'tweak-lib3026-test'. --- gnu/packages/curl.scm | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/gnu/packages/curl.scm b/gnu/packages/curl.scm index 6d1cc9a572..d82d94abff 100644 --- a/gnu/packages/curl.scm +++ b/gnu/packages/curl.scm @@ -2,7 +2,7 @@ ;;; Copyright © 2013, 2014, 2015 Andreas Enge ;;; Copyright © 2015 Mark H Weaver ;;; Copyright © 2015 Tomáš Čech -;;; Copyright © 2015, 2020, 2021 Ludovic Courtès +;;; Copyright © 2015, 2020, 2021, 2022 Ludovic Courtès ;;; Copyright © 2016, 2017, 2019 Leo Famulari ;;; Copyright © 2017, 2019, 2020, 2022 Marius Bakke ;;; Copyright © 2017 Efraim Flashner @@ -161,15 +161,13 @@ tunneling, and so on.") (cond ((not (target-64bit?)) #~(modify-phases #$phases - (add-after 'unpack 'skip-failing-tests + (add-after 'unpack 'tweak-lib3026-test (lambda _ - (with-output-to-port - (open-file "tests/data/DISABLED" "a") - (lambda () - (display "# curl_global_init thread-safety") - (newline) - (display 3026) - (newline))))))) + ;; Have that test create a hundred threads, not a + ;; thousand. + (substitute* "tests/libtest/lib3026.c" + (("NUM_THREADS .*$") + "NUM_THREADS 100\n")))))) (else phases))))))) (define-public curl-minimal -- cgit v1.2.3