curl/tests/libtest
Daniel Stenberg 0a04dc4d5d
lib1564: reduce number of mid-wait wakeup calls
This test does A LOT of *wakeup() calls and then calls curl_multi_poll()
twice. The first *poll() is then expected to return early and the second
not - as the first is supposed to drain the socketpair pipe.

It turns out however that when given "excessive" amounts of writes to
the pipe, some operating systems (the Solaris based are known) will
return EAGAIN before the pipe is drained, which in our test case causes
the second *poll() call to also abort early.

This change attempts to avoid the OS-specific behaviors in the test by
reducing the amount of wakeup calls from 1234567 to 10.

Reported-by: Andy Fiddaman
Fixes #5037
Closes #5058
2020-03-07 23:27:58 +01:00
..
.gitignore libtest: Add chkdecimalpoint to .gitignore 2018-09-15 23:39:50 +02:00
chkdecimalpoint.c snprintf: renamed and we now only use msnprintf() 2018-11-23 08:26:51 +01:00
chkhostname.c
CMakeLists.txt build: Disable Visual Studio warning "conditional expression is constant" 2019-12-01 19:01:02 -05:00
first.c cleanup: s/curl_debug/curl_dbg_debug in comments and docs 2019-08-08 16:01:00 +02:00
lib500.c whitespace fixes 2018-09-23 22:24:02 +00:00
lib501.c whitespace fixes 2018-09-23 22:24:02 +00:00
lib502.c whitespace fixes 2018-09-23 22:24:02 +00:00
lib503.c whitespace fixes 2018-09-23 22:24:02 +00:00
lib504.c whitespace fixes 2018-09-23 22:24:02 +00:00
lib505.c
lib506.c cookies: using a share with cookies shouldn't enable the cookie engine 2019-09-28 18:10:43 +02:00
lib507.c
lib508.c
lib509.c copyrights: update all copyright notices to 2019 on files changed this year 2019-11-02 23:15:56 +01:00
lib510.c
lib511.c
lib512.c whitespace fixes 2018-09-23 22:24:02 +00:00
lib513.c
lib514.c
lib515.c
lib516.c
lib517.c
lib518.c snprintf: renamed and we now only use msnprintf() 2018-11-23 08:26:51 +01:00
lib519.c whitespace fixes 2018-09-23 22:24:02 +00:00
lib520.c
lib521.c whitespace fixes 2018-09-23 22:24:02 +00:00
lib523.c whitespace fixes 2018-09-23 22:24:02 +00:00
lib524.c whitespace fixes 2018-09-23 22:24:02 +00:00
lib525.c
lib526.c
lib530.c snprintf: renamed and we now only use msnprintf() 2018-11-23 08:26:51 +01:00
lib533.c
lib537.c snprintf: renamed and we now only use msnprintf() 2018-11-23 08:26:51 +01:00
lib539.c
lib540.c snprintf: renamed and we now only use msnprintf() 2018-11-23 08:26:51 +01:00
lib541.c copyrights: update all copyright notices to 2019 on files changed this year 2019-11-02 23:15:56 +01:00
lib542.c
lib543.c
lib544.c
lib547.c whitespace fixes 2018-09-23 22:24:02 +00:00
lib549.c whitespace fixes 2018-09-23 22:24:02 +00:00
lib552.c
lib553.c snprintf: renamed and we now only use msnprintf() 2018-11-23 08:26:51 +01:00
lib554.c
lib555.c whitespace fixes 2018-09-23 22:24:02 +00:00
lib556.c tests: fix multiple may be used uninitialized warnings 2019-03-05 14:38:25 +01:00
lib557.c copyrights: update all copyright notices to 2019 on files changed this year 2019-11-02 23:15:56 +01:00
lib558.c whitespace fixes 2018-09-23 22:24:02 +00:00
lib559.c whitespace fixes 2018-09-23 22:24:02 +00:00
lib560.c
lib562.c
lib564.c
lib566.c whitespace fixes 2018-09-23 22:24:02 +00:00
lib567.c whitespace fixes 2018-09-23 22:24:02 +00:00
lib568.c whitespace fixes 2018-09-23 22:24:02 +00:00
lib569.c copyrights: update all copyright notices to 2019 on files changed this year 2019-11-02 23:15:56 +01:00
lib570.c whitespace fixes 2018-09-23 22:24:02 +00:00
lib571.c copyrights: update all copyright notices to 2019 on files changed this year 2019-11-02 23:15:56 +01:00
lib572.c whitespace fixes 2018-09-23 22:24:02 +00:00
lib573.c whitespace fixes 2018-09-23 22:24:02 +00:00
lib574.c
lib575.c
lib576.c
lib578.c
lib579.c
lib582.c
lib583.c
lib586.c whitespace fixes 2018-09-23 22:24:02 +00:00
lib589.c
lib590.c whitespace fixes 2018-09-23 22:24:02 +00:00
lib591.c
lib597.c connection: never reuse CONNECT_ONLY conections 2019-02-19 22:50:02 +01:00
lib598.c whitespace fixes 2018-09-23 22:24:02 +00:00
lib599.c
lib643.c mime: do not perform more than one read in a row 2020-03-07 23:26:00 +01:00
lib650.c curl-compilers: enable -Wbad-function-cast on GCC 2018-08-21 18:53:45 +02:00
lib651.c
lib652.c mime: fix the binary encoder to handle large data properly 2020-03-07 23:26:15 +01:00
lib653.c
lib654.c mime: do not perform more than one read in a row 2020-03-07 23:26:00 +01:00
lib655.c
lib658.c setopt: add CURLOPT_CURLU 2018-11-09 15:47:28 +01:00
lib659.c CURLU: fix NULL dereference when used over proxy 2019-03-04 16:24:08 +01:00
lib661.c copyrights: update all copyright notices to 2019 on files changed this year 2019-11-02 23:15:56 +01:00
lib666.c mime: fix the binary encoder to handle large data properly 2020-03-07 23:26:15 +01:00
lib667.c mime: do not perform more than one read in a row 2020-03-07 23:26:00 +01:00
lib668.c mime: do not perform more than one read in a row 2020-03-07 23:26:00 +01:00
lib670.c mime: latch last read callback status. 2020-03-07 23:26:00 +01:00
lib1156.c copyrights: update all copyright notices to 2019 on files changed this year 2019-11-02 23:15:56 +01:00
lib1500.c
lib1501.c
lib1502.c snprintf: renamed and we now only use msnprintf() 2018-11-23 08:26:51 +01:00
lib1506.c snprintf: renamed and we now only use msnprintf() 2018-11-23 08:26:51 +01:00
lib1507.c whitespace fixes 2018-09-23 22:24:02 +00:00
lib1508.c
lib1509.c
lib1510.c snprintf: renamed and we now only use msnprintf() 2018-11-23 08:26:51 +01:00
lib1511.c
lib1512.c snprintf: renamed and we now only use msnprintf() 2018-11-23 08:26:51 +01:00
lib1513.c
lib1514.c
lib1515.c tests: align some Windows sleep defines with each other 2020-03-04 16:11:03 +01:00
lib1517.c
lib1518.c Curl_follow: extract the Location: header field unvalidated 2018-12-12 07:58:47 +01:00
lib1520.c whitespace fixes 2018-09-23 22:24:02 +00:00
lib1522.c copyrights: update all copyright notices to 2019 on files changed this year 2019-11-02 23:15:56 +01:00
lib1523.c test1523: basic test of CURLOPT_LOW_SPEED_LIMIT 2019-06-18 22:34:05 +02:00
lib1525.c
lib1526.c whitespace fixes 2018-09-23 22:24:02 +00:00
lib1527.c
lib1528.c
lib1529.c snprintf: renamed and we now only use msnprintf() 2018-11-23 08:26:51 +01:00
lib1530.c
lib1531.c tests: align some Windows sleep defines with each other 2020-03-04 16:11:03 +01:00
lib1532.c
lib1533.c whitespace fixes 2018-09-23 22:24:02 +00:00
lib1534.c
lib1535.c
lib1536.c
lib1537.c tests: fix multiple may be used uninitialized warnings 2019-03-05 14:38:25 +01:00
lib1538.c
lib1540.c test1540: Remove unused macro TEST_HANG_TIMEOUT 2018-08-09 12:37:21 +02:00
lib1541.c build: fix Codacy warnings 2019-06-05 20:38:06 +02:00
lib1550.c
lib1551.c
lib1552.c
lib1553.c
lib1554.c
lib1555.c tests: fix multiple may be used uninitialized warnings 2019-03-05 14:38:25 +01:00
lib1556.c
lib1557.c lib1557: fix mem-leak in OOM 2019-12-13 08:16:06 +01:00
lib1558.c test1558: verify CURLINFO_PROTOCOL on file:// transfer 2019-01-10 11:22:48 +01:00
lib1559.c lib1559: fix mem-leak in OOM 2019-12-13 08:16:24 +01:00
lib1560.c urlapi: guess scheme correct even with credentials given 2020-01-28 08:40:16 +01:00
lib1564.c lib1564: reduce number of mid-wait wakeup calls 2020-03-07 23:27:58 +01:00
lib1565.c multi: add curl_multi_wakeup() 2019-11-25 15:45:56 +01:00
lib1591.c lib1591: free memory properly on OOM, in the trailers callback 2019-12-15 18:19:01 +01:00
lib1592.c curl_multi_remove_handle() don't block terminating c-ares requests 2019-01-07 10:05:20 +01:00
lib1593.c http: allow overriding timecond with custom header 2019-07-14 16:17:15 +02:00
lib1594.c CURLINFO_RETRY_AFTER: parse the Retry-After header value 2019-08-07 14:45:39 +02:00
lib1900.c tests: fix multiple may be used uninitialized warnings 2019-03-05 14:38:25 +01:00
lib1905.c build: fix Codacy warnings 2019-06-05 20:38:06 +02:00
lib1906.c tests: Run global cleanup at end of tests 2019-04-15 15:23:58 +02:00
lib1907.c url: normalize CURLINFO_EFFECTIVE_URL 2019-10-16 14:10:55 +02:00
lib1908.c altsvc: keep a copy of the file name to survive handle reset 2020-02-09 22:41:49 +01:00
libauthretry.c snprintf: renamed and we now only use msnprintf() 2018-11-23 08:26:51 +01:00
libntlmconnect.c snprintf: renamed and we now only use msnprintf() 2018-11-23 08:26:51 +01:00
Makefile.am tests: make sure checksrc runs on header files too 2019-12-16 22:46:48 +01:00
Makefile.inc mime: fix the binary encoder to handle large data properly 2020-03-07 23:26:15 +01:00
mk-lib1521.pl libtest/mk-lib1521: adapt to new public header layout 2020-01-09 22:57:33 +01:00
notexists.pl
sethostname.c
sethostname.h whitespace fixes 2018-09-23 22:24:02 +00:00
stub_gssapi.c gssapi: fix deprecated header warnings 2019-02-14 08:38:43 +01:00
stub_gssapi.h whitespace fixes 2018-09-23 22:24:02 +00:00
test75.pl
test307.pl
test610.pl
test613.pl
test1013.pl
test1022.pl
test.h tests: make sure checksrc runs on header files too 2019-12-16 22:46:48 +01:00
testtrace.c snprintf: renamed and we now only use msnprintf() 2018-11-23 08:26:51 +01:00
testtrace.h whitespace fixes 2018-09-23 22:24:02 +00:00
testutil.c
testutil.h whitespace fixes 2018-09-23 22:24:02 +00:00