Added test 626 to reproduce an infinite loop when given an invalid

SFTP quote command reported by Vincent Le Normand, but left it disabled.
This commit is contained in:
Dan Fandrich
2008-03-18 17:05:29 +00:00
parent 6f3166c15b
commit a57098ea9b
4 changed files with 48 additions and 1 deletions

42
tests/data/test626 Normal file
View File

@@ -0,0 +1,42 @@
<testcase>
<info>
<keywords>
SFTP
pre-quote
FAILURE
</keywords>
</info>
#
# Server-side
<reply>
</reply>
#
# Client-side
<client>
<server>
sftp
</server>
<name>
SFTP invalid quote command
</name>
<command>
--key curl_client_key --pubkey curl_client_key.pub -u %USER: -Q "invalid-command foo bar" sftp://%HOSTIP:%SSHPORT%PWD/log/file626.txt
</command>
<file name="log/file626.txt">
Test file for rename test
</file>
</client>
#
# Verify data after the test has been "shot"
<verify>
<file name="log/file626-renamed.txt">
Test file for rename test
</file>
<valgrind>
disable
</valgrind>
</verify>
</testcase>