Commit c3df1ba7 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Expect bug 836: mark-text-as-read gives a protocol error response

instead of the error code long-array when an overly long array is sent
to the server.
parent 41c176c4
......@@ -386,27 +386,32 @@ set tests {
{"Disconnect parsing a c_local_text_no_p array, overly long, before \{."
{"A3Hfoo\n" "LysKOM" "1 62 5 6Hgazonk 1\n" "=1"
"2 27 5 6 "}}
{"Try to give an insanely large greeting (A47114711H...)"
{"A47114711Hxyzzy"}}
{"Disconnect parsing a c_local_text_no_p array, overly long, after \{."
{"A3Hfoo\n" "LysKOM" "1 62 5 6Hgazonk 1\n" "=1"
"2 27 5 6 \{ "}}
{"A3Hfoo\n" "LysKOM" "1 62 5 6Hgazonk 1\n" "=1"
"2 27 5 6 \{ " "%% LysKOM protocol error."}}
{"Disconnect parsing a c_local_text_no_p array, overly long, first half."
{"A3Hfoo\n" "LysKOM" "1 62 5 6Hgazonk 1\n" "=1"
"2 27 5 6 \{ 1 2 3 "}}
{"A3Hfoo\n" "LysKOM" "1 62 5 6Hgazonk 1\n" "=1"
"2 27 5 6 \{ 1 2 3 " "%% LysKOM protocol error."}}
{"Disconnect parsing a c_local_text_no_p array, overly long, second half."
{"A3Hfoo\n" "LysKOM" "1 62 5 6Hgazonk 1\n" "=1"
"2 27 5 6 \{ 1 2 3 4 5 "}}
{"A3Hfoo\n" "LysKOM" "1 62 5 6Hgazonk 1\n" "=1"
"2 27 5 6 \{ 1 2 3 4 5 " "%% LysKOM protocol error."}}
{"Disconnect parsing a c_local_text_no_p array, overly long, before \}."
{"A3Hfoo\n" "LysKOM" "1 62 5 6Hgazonk 1\n" "=1"
"2 27 5 6 \{ 1 2 3 4 5 6 "}}
{"Try to give an insanely large greeting (A47114711H...)"
{"A47114711Hxyzzy"}}
{"A3Hfoo\n" "LysKOM" "1 62 5 6Hgazonk 1\n" "=1"
"2 27 5 6 \{ 1 2 3 4 5 6 " "%% LysKOM protocol error."}}
}
# FIXME (bug 836): The last for test above, for c_local_text_no_p,
# should not return protocol errors. When they no longer do, just
# remove the "%% LysKOM protocol error." in them.
set next_client 2
set hanging_clients {}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment