From: Dan Fandrich Date: Tue, 19 Sep 2023 18:09:47 +0000 (-0700) Subject: test1474: disable test on NetBSD, OpenBSD and Solaris 10 X-Git-Tag: curl-8_4_0~175 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=08f9b2148;p=thirdparty%2Fcurl.git test1474: disable test on NetBSD, OpenBSD and Solaris 10 These kernels only send a fraction of the requested amount of the first large block, invalidating the assumptions of the test and causing it to fail. Assisted-by: Christian Weisgerber Ref: https://curl.se/mail/lib-2023-09/0021.html Closes #11888 --- diff --git a/tests/data/test1474 b/tests/data/test1474 index 848f15211b..7e067ab4b7 100644 --- a/tests/data/test1474 +++ b/tests/data/test1474 @@ -26,6 +26,10 @@ # less of accepted delay before failure). Adding a --speed-time would increase # the 1 second delay between writes to longer, but it would also increase the # total time needed by the test, which is already quite high. +# +# The assumption in step 3 is also broken on NetBSD 9.3, OpenBSD 7.3 and +# Solaris 10 as they only usually send about half the requested amount of data +# (see https://curl.se/mail/lib-2023-09/0021.html). HTTP @@ -84,6 +88,9 @@ 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));" + # Must be large enough to trigger curl's automatic 100-continue behaviour %repeat[132 x S]%%repeat[16462 x xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx%0a]%