aboutsummaryrefslogtreecommitdiff
path: root/tests/data/test1360
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2012-06-05 20:19:27 +0200
committerYang Tse <yangsita@gmail.com>2012-06-05 20:20:40 +0200
commit2b56e4c1bb31dc69517156a1c70a264a6f6e91e4 (patch)
treebccb9de80370c85203be68a7aa59e127098e9c40 /tests/data/test1360
parent62f374b19e2c6cfd417df4a6781a8b8e0a338df4 (diff)
tests 1334 to 1363 revisited.
Add a postcheck section to verify unintended file creation. Remove needless <file> checks in verify section. Renumbering where appropriate.
Diffstat (limited to 'tests/data/test1360')
-rw-r--r--tests/data/test136017
1 files changed, 7 insertions, 10 deletions
diff --git a/tests/data/test1360 b/tests/data/test1360
index 01c4bdba2..f7c54cf3f 100644
--- a/tests/data/test1360
+++ b/tests/data/test1360
@@ -42,6 +42,9 @@ CURL_TESTDIR=%PWD/log
<command option="no-output,no-include">
ftp://%HOSTIP:%FTPPORT/path/file1360 -O -J -D -
</command>
+<postcheck>
+perl %SRCDIR/libtest/notexists.pl %PWD/log/name1360
+</postcheck>
</client>
# Verify data after the test has been "shot"
@@ -70,10 +73,7 @@ Content-Disposition: filename=name1360; charset=funny; option=strange
MOOOO
</file1>
-<file2 name="log/heads1360">
-</file2>
-
-<file3 name="log/stdout1360">
+<file2 name="log/stdout1360">
220- _ _ ____ _
220- ___| | | | _ \| |
220- / __| | | | |_) | |
@@ -89,13 +89,10 @@ MOOOO
150 Binary data connection for 1360 () (214 bytes).
226 File transfer complete
curl: Saved to filename '%PWD/log/file1360'
-</file3>
-<stripfile3>
+</file2>
+<stripfile2>
s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/
-</stripfile3>
-
-<file4 name="log/name1360">
-</file4>
+</stripfile2>
</verify>
</testcase>