cURL / Mailing Lists / curl-library / Single Mail

curl-library

[PATCH] Allow various Curl test suite tests to work on non-ASCII platforms

From: David McCreedy <mccreedytpf_at_gmail.com>
Date: Thu, 30 Apr 2009 19:03:45 -0600

The Curl test suite is very useful.

This patch allows various HTTP and FTP tests to work on both ASCII and
non-ASCII platforms alike.

Changes to tests/data/test508 and test555:

Added a "strippart" section command to remove the carriage return that the
CURLOPT_TRANSFERTEXT option adds to the line ending(s) in the POST data.

Modification to tests/libtest/lib506.c:

Changed to allow the code to work on non-ASCII platforms.

* *

Modificatons to tests/libtest/lib508.c, lib510.c, lib552.c, lib553.c, and
lib555.c:

Changed to use the CURLOPT_TRANSFERTEXT option on platforms where
CURL_DOES_CONVERSIONS (non-ASCII platforms) so the POST data from the
CURLOPT_READFUNCTION will be converted to ASCII.

Also added a TPF platform-specific sleep function call to avoid a loop
timing dump in lib555.c.

Modifications to tests/libtest/lib544.c, lib547.c, and lib554.c:

Changed to use C language escape sequences so that the POST data is defined
in ASCII on both ASCII and non-ASCII platforms.

Modifications to tests/libtest/lib556.c:

Changed to use C language escape sequences so that the raw HTTP request is
defined in ASCII on both ASCII and non-ASCII platforms.

Also added a TPF platform-specific sleep function call to avoid a loop
timing dump.

* *

Thanks,

David McCreedy**

Received on 2009-05-01