From 7b0b03c057ed764f918fdda6012978a5518ba5df Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Thu, 26 Jun 2025 23:13:43 +0200 Subject: [PATCH] runtests: fix `LD_PRELOAD` detection for cmake-built curl binaries CMake builds by default don't include a triplet in the `curl -V` output, but a CMake-specific OS string, which is usually capitalized or stylized, e.g. "Linux", or "FreeBSD". Make the regexp expression case-insensitive to handle this. Follow-up to 171b62375965fbf5f02e66f587a83043059ae41a #17653 Closes #17756 --- tests/runtests.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/runtests.pl b/tests/runtests.pl index 2708800318..8e3b58bd68 100755 --- a/tests/runtests.pl +++ b/tests/runtests.pl @@ -545,7 +545,7 @@ sub checksystemfeatures { $curl =~ s/^(.*)(libcurl.*)/$1/g || die "Failure determining curl binary version"; $libcurl = $2; - if($curl =~ /linux|bsd|solaris/) { + if($curl =~ /linux|bsd|solaris/i) { # system supports LD_PRELOAD/LD_LIBRARY_PATH; may be disabled later $feature{"ld_preload"} = 1; }