diff options
author | Yang Tse <yangsita@gmail.com> | 2012-06-05 20:19:27 +0200 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2012-06-05 20:20:40 +0200 |
commit | 2b56e4c1bb31dc69517156a1c70a264a6f6e91e4 (patch) | |
tree | bccb9de80370c85203be68a7aa59e127098e9c40 /tests/data/test1358 | |
parent | 62f374b19e2c6cfd417df4a6781a8b8e0a338df4 (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/test1358')
-rw-r--r-- | tests/data/test1358 | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/tests/data/test1358 b/tests/data/test1358 index 0e2d045e2..e01047c58 100644 --- a/tests/data/test1358 +++ b/tests/data/test1358 @@ -41,6 +41,9 @@ CURL_TESTDIR=%PWD/log <command option="no-output,no-include"> ftp://%HOSTIP:%FTPPORT/path/file1358 -O -D - </command> +<postcheck> +perl %SRCDIR/libtest/notexists.pl %PWD/log/name1358 +</postcheck> </client> # Verify data after the test has been "shot" @@ -69,10 +72,7 @@ Content-Disposition: filename=name1358; charset=funny; option=strange MOOOO </file1> -<file2 name="log/heads1358"> -</file2> - -<file3 name="log/stdout1358"> +<file2 name="log/stdout1358"> 220- _ _ ____ _
220- ___| | | | _ \| |
220- / __| | | | |_) | |
@@ -87,13 +87,10 @@ MOOOO 213 214
150 Binary data connection for 1358 () (214 bytes).
226 File transfer complete
-</file3> -<stripfile3> +</file2> +<stripfile2> s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/ -</stripfile3> - -<file4 name="log/name1358"> -</file4> +</stripfile2> </verify> </testcase> |