mirror of
https://github.com/curl/curl.git
synced 2026-08-25 11:33:33 +03:00
tests: propagate errors in libtests
Use the test macros to automatically propagate some errors, and check and log others while running the tests. This can help in debugging exactly why a test has failed.
This commit is contained in:
parent
61c8f1edc3
commit
2bee7aeb34
27 changed files with 318 additions and 261 deletions
|
|
@ -54,6 +54,14 @@ http://%HOSTIP:%HTTPPORT/%TESTNUMBER http://%HOSTIP:%HTTPPORT/%TESTNUMBER0002
|
|||
#
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
# hyper doesn't like the bad header in the second request
|
||||
<errorcode>
|
||||
%if hyper
|
||||
1
|
||||
%else
|
||||
0
|
||||
%endif
|
||||
</errorcode>
|
||||
<protocol>
|
||||
GET /%TESTNUMBER HTTP/1.1
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue