test1520: Fixed initial teething problems
* Missing initialisation of upload status caused a seg fault * Missing data termination caused corrupt data to be uploaded * Data verification should be performed in <upload> element * Added missing recipient list cleanup
This commit is contained in:
parent
9459ee99ae
commit
0d037cfdce
@ -44,6 +44,9 @@ EHLO 1520
|
|||||||
MAIL FROM:<sender@example.com>
|
MAIL FROM:<sender@example.com>
|
||||||
RCPT TO:<recipient@example.com>
|
RCPT TO:<recipient@example.com>
|
||||||
DATA
|
DATA
|
||||||
|
QUIT
|
||||||
|
</protocol>
|
||||||
|
<upload>
|
||||||
From: different
|
From: different
|
||||||
To: another
|
To: another
|
||||||
|
|
||||||
@ -54,6 +57,7 @@ To: another
|
|||||||
..
|
..
|
||||||
|
|
||||||
body
|
body
|
||||||
</protocol>
|
.
|
||||||
|
</upload>
|
||||||
</verify>
|
</verify>
|
||||||
</testcase>
|
</testcase>
|
||||||
|
@ -39,7 +39,8 @@ static const char *payload_text[] = {
|
|||||||
"\r\n",
|
"\r\n",
|
||||||
".\r\n",
|
".\r\n",
|
||||||
"\r\n",
|
"\r\n",
|
||||||
"body"
|
"body",
|
||||||
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
struct upload_status {
|
struct upload_status {
|
||||||
@ -103,6 +104,7 @@ int test(char *URL)
|
|||||||
|
|
||||||
test_cleanup:
|
test_cleanup:
|
||||||
|
|
||||||
|
curl_slist_free_all(rcpt_list);
|
||||||
curl_easy_cleanup(curl);
|
curl_easy_cleanup(curl);
|
||||||
curl_global_cleanup();
|
curl_global_cleanup();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user