mirror of
https://github.com/curl/curl.git
synced 2026-08-24 13:03:35 +03:00
tests: add stderr comparison to the test suite
The code is more or less copied from the stdout comparison code, maybe some better reuse is possible. test 1457 is adjusted to make the output actually match (by using --silent) test 506 used <stderr> without actually needing it, so that <stderr> block is removed Closes #3536
This commit is contained in:
parent
cac0e4a6ad
commit
35a8fd2886
3 changed files with 54 additions and 5 deletions
|
|
@ -29,7 +29,7 @@ http
|
|||
Check if %{stderr} and %{stdout} switch between stdout and stderr.
|
||||
</name>
|
||||
<command>
|
||||
http://%HOSTIP:%HTTPPORT/1457 --write-out 'line1%{stderr}line2%{stdout}line3'
|
||||
http://%HOSTIP:%HTTPPORT/1457 --silent --write-out 'line1%{stderr}line2%{stdout}line3'
|
||||
</command>
|
||||
</client>
|
||||
|
||||
|
|
|
|||
|
|
@ -228,9 +228,6 @@ lock: share [Pigs in space]: 94
|
|||
unlock: share [Pigs in space]: 95
|
||||
GLOBAL_CLEANUP
|
||||
</stdout>
|
||||
<stderr>
|
||||
http://%HOSTIP:%HTTPPORT/506
|
||||
</stderr>
|
||||
<file name="log/jar506" mode="text">
|
||||
# Netscape HTTP Cookie File
|
||||
# https://curl.haxx.se/docs/http-cookies.html
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue