From: Dan Fandrich Date: Wed, 20 Sep 2023 21:26:32 +0000 (-0700) Subject: test1474: make precheck more robust on non-Solaris systems X-Git-Tag: curl-8_4_0~168 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d6d458b1cf1bf2c34cd39cff9ef9a0e0070b992c;p=thirdparty%2Fcurl.git test1474: make precheck more robust on non-Solaris systems If uname -r returns something odd, perl could return an error code and the test would be erroneously skipped. The qx// syntax avoid this. Followup to 08f9b2148 --- diff --git a/tests/data/test1474 b/tests/data/test1474 index 7e067ab4b7..c27ed7da2a 100644 --- a/tests/data/test1474 +++ b/tests/data/test1474 @@ -89,7 +89,7 @@ HTTP PUT with Expect: 100-continue and 417 response during upload http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER -T %LOGDIR/test%TESTNUMBER.txt --limit-rate 64K --expect100-timeout 0.001 -perl -e "print 'Test does not work on this BSD system' if ( $^O eq 'netbsd' || $^O eq 'openbsd' || ($^O eq 'solaris' && `uname -r` * 100 <= 510));" +perl -e "print 'Test does not work on this BSD system' if ( $^O eq 'netbsd' || $^O eq 'openbsd' || ($^O eq 'solaris' && qx/uname -r/ * 100 <= 510));" # Must be large enough to trigger curl's automatic 100-continue behaviour