From 08f9b21483b67a1180f342eec4441a34f04745a5 Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Tue, 19 Sep 2023 11:09:47 -0700 Subject: [PATCH] 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 --- tests/data/test1474 | 7 +++++++ 1 file changed, 7 insertions(+) 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]% -- 2.47.2