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

Updated, now that the parser no longer accepts negative numbers.

parent 3af0b4a2
......@@ -68,9 +68,11 @@ send "1POPGOESTHEWEASEL 9999\n"
protocol_error
# Send a negative array size
# Send a "negative" array size
send "1000 80 -1 { 1 }\n"
simple_expect "%% LysKOM protocol error."
send "1000 80 3000000000 { 1 }\n"
simple_expect "%%Insane array size."
client_death 0
......@@ -138,9 +140,11 @@ protocol_error
# protocol_error
# Send a negative string length
# Send a "negative" string length
send "1012 62 5 -6Hgazonk 0\n"
simple_expect "%% LysKOM protocol error."
send "1012 62 5 3000000000Hgazonk 0\n"
simple_expect "%%Insane string length."
client_death 0
......@@ -193,6 +197,8 @@ send "1018 86 [holl "Text"] 0 { } 2 { 1 00000000 0 [holl "A"] }\n"
protocol_error
send "1019 86 [holl "Text"] 0 { } -1 { 1 00000000 0 [holl "A"] }\n"
simple_expect "%% LysKOM protocol error."
send "1019 86 [holl "Text"] 0 { } 3000000000 { 1 00000000 0 [holl "A"] }\n"
simple_expect "%%Insane array size."
client_death 0
client_start 0
......@@ -212,6 +218,8 @@ simple_expect "%1021 46 1"
# Try to send a short delete list, add list and misc-info list
send "1022 92 1 -1 { } 0 { }\n"
simple_expect "%% LysKOM protocol error."
send "1022 92 1 4294967295 { } 0 { }\n"
simple_expect "%%Insane array size."
client_death 0
client_start 0
......@@ -220,6 +228,8 @@ kom_connect "DejaGnu Test Lager"
kom_accept_async "0 { }"
send "1023 92 1 0 { } -1 { }\n"
simple_expect "%% LysKOM protocol error."
send "1023 92 1 0 { } 4294967295 { }\n"
simple_expect "%%Insane array size."
client_death 0
client_start 0
......@@ -228,6 +238,8 @@ kom_connect "DejaGnu Test Lager"
kom_accept_async "0 { }"
send "1024 86 [holl "TX"] -1 { } 0 { }\n"
simple_expect "%% LysKOM protocol error."
send "1024 86 [holl "TX"] 4294967295 { } 0 { }\n"
simple_expect "%%Insane array size."
client_death 0
client_start 0
......@@ -236,6 +248,8 @@ kom_connect "DejaGnu Test Lager"
kom_accept_async "0 { }"
send "1025 86 [holl "TX"] 0 { } -1 { }\n"
simple_expect "%% LysKOM protocol error."
send "1025 86 [holl "TX"] 0 { } 4294967295 { }\n"
simple_expect "%%Insane array size."
client_death 0
client_start 0
......@@ -291,6 +305,8 @@ protocol_error
# Bad array tests
send "2000 28 [holl "TX"] -1 { 0 5 }\n"
simple_expect "%% LysKOM protocol error."
send "2000 28 [holl "TX"] 4294967295 { 0 5 }\n"
simple_expect "%%Insane array size."
client_death 0
client_start 0
......@@ -299,6 +315,8 @@ kom_connect "DejaGnu Test Lager"
kom_accept_async "0 { }"
send "2001 59 [holl "TX"] -1 { 0 5 }\n"
simple_expect "%% LysKOM protocol error."
send "2001 59 [holl "TX"] 4294967295 { 0 5 }\n"
simple_expect "%%Insane array size."
client_death 0
client_start 0
......@@ -307,6 +325,8 @@ kom_connect "DejaGnu Test Lager"
kom_accept_async "0 { }"
send "2002 80 -1 { }\n"
simple_expect "%% LysKOM protocol error."
send "2002 80 4294967295 { }\n"
simple_expect "%%Insane array size."
client_death 0
client_start 0
......@@ -315,6 +335,8 @@ kom_connect "DejaGnu Test Lager"
kom_accept_async "0 { }"
send "2003 86 [holl "TX"] -1 { } 0 { }\n"
simple_expect "%% LysKOM protocol error."
send "2003 86 [holl "TX"] 4294967295 { } 0 { }\n"
simple_expect "%%Insane array size."
client_death 0
client_start 0
......@@ -323,6 +345,8 @@ kom_connect "DejaGnu Test Lager"
kom_accept_async "0 { }"
send "2003 87 [holl "TX"] -1 { } 0 { }\n"
simple_expect "%% LysKOM protocol error."
send "2003 87 [holl "TX"] 4294967295 { } 0 { }\n"
simple_expect "%%Insane array size."
client_death 0
client_start 0
......@@ -331,6 +355,8 @@ kom_connect "DejaGnu Test Lager"
kom_accept_async "0 { }"
send "2004 86 [holl "TX"] 0 { } -1 { }\n"
simple_expect "%% LysKOM protocol error."
send "2004 86 [holl "TX"] 0 { } 4294967295 { }\n"
simple_expect "%%Insane array size."
client_death 0
client_start 0
......@@ -339,6 +365,8 @@ kom_connect "DejaGnu Test Lager"
kom_accept_async "0 { }"
send "2005 87 [holl "TX"] 0 { } -1 { }\n"
simple_expect "%% LysKOM protocol error."
send "2005 87 [holl "TX"] 0 { } 4294967295 { }\n"
simple_expect "%%Insane array size."
client_death 0
client_start 0
......@@ -347,6 +375,8 @@ kom_connect "DejaGnu Test Lager"
kom_accept_async "0 { }"
send "2006 88 [holl "CC"] 00000000 -1 { }\n"
simple_expect "%% LysKOM protocol error."
send "2006 88 [holl "CC"] 00000000 4294967295 { }\n"
simple_expect "%%Insane array size."
client_death 0
client_start 0
......@@ -355,6 +385,8 @@ kom_connect "DejaGnu Test Lager"
kom_accept_async "0 { }"
send "2007 89 [holl "PP"] [holl "PW"] 0 -1 { }\n"
simple_expect "%% LysKOM protocol error."
send "2007 89 [holl "PP"] [holl "PW"] 0 3000000000 { }\n"
simple_expect "%%Insane array size."
client_death 0
client_start 0
......@@ -363,6 +395,8 @@ kom_connect "DejaGnu Test Lager"
kom_accept_async "0 { }"
send "2008 92 1 -1 { } 0 { }\n"
simple_expect "%% LysKOM protocol error."
send "2008 92 1 3000000000 { } 0 { }\n"
simple_expect "%%Insane array size."
client_death 0
client_start 0
......@@ -371,6 +405,8 @@ kom_connect "DejaGnu Test Lager"
kom_accept_async "0 { }"
send "2009 93 1 -1 { } 0 { }\n"
simple_expect "%% LysKOM protocol error."
send "2009 93 1 30000000000 { } 0 { }\n"
simple_expect "%%Insane array size."
client_death 0
client_start 0
......@@ -379,6 +415,8 @@ kom_connect "DejaGnu Test Lager"
kom_accept_async "0 { }"
send "2008 95 -1 { } 0 { }\n"
simple_expect "%% LysKOM protocol error."
send "2008 95 4294967295 { } 0 { }\n"
simple_expect "%%Insane array size."
client_death 0
client_start 0
......
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