mirror of
https://github.com/curl/curl.git
synced 2024-12-15 06:40:09 +08:00
e2b4df7b5e
This makes the tests easier to copy and relocate to other test numbers without having to update content. Closes #6738
51 lines
731 B
Plaintext
51 lines
731 B
Plaintext
<testcase>
|
|
<info>
|
|
<keywords>
|
|
RECURSIVE_API_CALL
|
|
</keywords>
|
|
</info>
|
|
|
|
# Server-side
|
|
<reply>
|
|
<data nocheck="yes">
|
|
HTTP/1.1 204 PARTIAL
|
|
X-Comment: partial response to keep the client waiting
|
|
</data>
|
|
<postcmd>
|
|
wait 10
|
|
</postcmd>
|
|
</reply>
|
|
|
|
# Client-side
|
|
<client>
|
|
<server>
|
|
http
|
|
</server>
|
|
<tool>
|
|
lib%TESTNUMBER
|
|
</tool>
|
|
<name>
|
|
verify api is protected against calls from callbacks
|
|
</name>
|
|
|
|
# this server/host won't be used for real
|
|
<command>
|
|
http://%HOSTIP:%HTTPPORT/%TESTNUMBER
|
|
</command>
|
|
</client>
|
|
|
|
# Verify data after the test has been "shot"
|
|
<verify>
|
|
<protocol>
|
|
</protocol>
|
|
# 42 == CURLE_ABORTED_BY_CALLBACK
|
|
<errorcode>
|
|
42
|
|
</errorcode>
|
|
<stdout>
|
|
curl_easy_recv returned 93
|
|
curl_easy_send returned 93
|
|
</stdout>
|
|
</verify>
|
|
</testcase>
|