aboutsummaryrefslogtreecommitdiff
path: root/tests/data/test543
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2007-09-30 22:40:24 +0000
committerDaniel Stenberg <daniel@haxx.se>2007-09-30 22:40:24 +0000
commitec08e2f9f24da5974be1ab222c5703fd9fb3722f (patch)
treeefe5f2f8496623b8bdce46f3d4103a246de2aaba /tests/data/test543
parent38dd0ede9ddcf7491792e7edd98665841667ae67 (diff)
Alex Fishman reported a curl_easy_escape() problem that was made the
function do wrong on all input bytes that are >= 0x80 (decimal 128) due to a signed / unsigned mistake in the code. I fixed it and added test case 543 to verify.
Diffstat (limited to 'tests/data/test543')
-rw-r--r--tests/data/test54335
1 files changed, 35 insertions, 0 deletions
diff --git a/tests/data/test543 b/tests/data/test543
new file mode 100644
index 000000000..455633037
--- /dev/null
+++ b/tests/data/test543
@@ -0,0 +1,35 @@
+<testcase>
+<info>
+<keywords>
+curl_easy_escape
+</keywords>
+</info>
+# Server-side
+
+# Client-side
+<client>
+<server>
+none
+</server>
+<tool>
+lib543
+</tool>
+ <name>
+curl_easy_escape
+ </name>
+ <command>
+-
+</command>
+
+</client>
+
+# Verify data after the test has been "shot"
+#
+# There's no MTDM in the protocol here since this code doesn't ask for the
+# time/date of the file
+<verify>
+<stdout>
+%9C%26K%3DI%04%A1%01%E0%D8%7C%20%B7%EFS%29%FA%1DW%E1
+</stdout>
+</verify>
+</testcase>