Commit 64f1a31a authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Test set_connection_time_format.

parent 83f562a1
......@@ -517,12 +517,20 @@ simple_expect "%1165 60 0"
send "1166 119 1 0 101\n"
simple_expect "%1166 59 100"
# 120:does not exist (change this when you add a call)
send "1167 120\n"
simple_expect "%1167 2 0"
# 120:set-connection-time-format
send "1167 120 1\n"
simple_expect "=1167"
send "1168 120 2\n"
simple_expect "%1168 19 0"
send "1169 120 0\n"
simple_expect "=1169"
# 121:does not exist (change this when you add a call)
send "1170 121\n"
simple_expect "%1170 2 0"
# finally, check that 55=disconnect actually works without logging in.
send "1168 55 1\n"
simple_expect "=1168" "disconnect (no login)"
send "1171 55 1\n"
simple_expect "=1171" "disconnect (no login)"
client_death 0
client_start 0
......@@ -531,32 +539,32 @@ send "A\n"
send "[holl "DejaGnu test suite"]\n"
simple_expect "LysKOM" "connected"
# Turn of async messages
send "1169 80 0 { }\n"
simple_expect "=1169"
send "1172 80 0 { }\n"
simple_expect "=1172"
# Log in
send "1170 62 5 [holl "gazonk"] 0\n"
simple_expect "=1170"
send "1173 62 5 [holl "gazonk"] 0\n"
simple_expect "=1173"
send "1171 9 5 5\n"
simple_expect "=1171 $any_time 5 255 0 0 \\*"
send "1174 9 5 5\n"
simple_expect "=1174 $any_time 5 255 0 0 \\*"
send "1172 27 5 0 { }\n"
simple_expect "=1172"
send "1175 27 5 0 { }\n"
simple_expect "=1175"
send "1173 9 5 5\n"
simple_expect "=1173 $any_time 5 255 0 0 \\*"
send "1176 9 5 5\n"
simple_expect "=1176 $any_time 5 255 0 0 \\*"
send "1174 6 6 1\n"
simple_expect "=1174 [idholl "DejaGnu test suite.unknown."] 0000010000000000 00000000 $any_time 0 $any_num 1 0 0 0 0 0 0 1 0 0 1"
send "1175 6 6 0\n"
simple_expect "=1175 0H 0000010000000000 00000000 $any_time 0 $any_num 1 0 0 0 0 0 0 1 0 0 1"
send "1177 6 6 1\n"
simple_expect "=1177 [idholl "DejaGnu test suite.unknown."] 0000010000000000 00000000 $any_time 0 $any_num 1 0 0 0 0 0 0 1 0 0 1"
send "1178 6 6 0\n"
simple_expect "=1178 0H 0000010000000000 00000000 $any_time 0 $any_num 1 0 0 0 0 0 0 1 0 0 1"
talk_to client 0
send "1176 42 255\n"
simple_expect "=1176" "42=enable succeeded"
send "1177 44 0\n"
simple_expect "=1177" "44=shutdown-kom succeeded"
send "1179 42 255\n"
simple_expect "=1179" "42=enable succeeded"
send "1180 44 0\n"
simple_expect "=1180" "44=shutdown-kom succeeded"
client_death 0
lyskomd_death
......@@ -1538,31 +1538,39 @@ send "1426 119 3 0 1\n"
simple_expect "%1426 42 3"
# There is no call 120--yet.
send "1427 120 1 2 3 4 1 32 { 2 }\n"
simple_expect "%1427 2 0"
# 120:set-connection-time-format
send "1427 120 1\n"
simple_expect "=1427"
send "1428 120 2\n"
simple_expect "%1428 19 0"
send "1429 120 0\n"
simple_expect "=1429"
# There is no call 121--yet.
send "1428 121\n"
simple_expect "%1428 2 0"
send "1430 121 1 2 3 4 1 32 { 2 }\n"
simple_expect "%1430 2 0"
# There is no call 122--yet.
send "1429 122\n"
simple_expect "%1429 2 0"
send "1431 122\n"
simple_expect "%1431 2 0"
# There is no call 123--yet.
send "1430 123\n"
simple_expect "%1430 2 0"
send "1432 123\n"
simple_expect "%1432 2 0"
# There is no call 124--yet.
send "1433 124\n"
simple_expect "%1433 2 0"
# Disconnect all but the first session
talk_to client 2
send "1431 55 4\n"
simple_expect "=1431"
send "1434 55 4\n"
simple_expect "=1434"
client_death 2
talk_to client 1
send "1432 55 2\n"
simple_expect "=1432"
send "1435 55 2\n"
simple_expect "=1435"
simple_expect ":2 13 8 2"
client_death 1
......@@ -1570,20 +1578,20 @@ client_death 1
talk_to client 0
simple_expect ":2 13 8 2"
send "1433 62 5 [holl "bar"] 0\n"
send "1436 62 5 [holl "bar"] 0\n"
simple_expect ":2 13 6 1"
simple_expect ":2 9 5 1"
simple_expect "=1433"
simple_expect "=1436"
send "1434 42 255\n"
simple_expect "=1434" "42=enable succeeded"
send "1435 43\n"
send "1437 42 255\n"
simple_expect "=1437" "42=enable succeeded"
send "1438 43\n"
simple_expect ":0 7"
simple_expect ":0 7"
simple_expect "=1435"
simple_expect "=1438"
talk_to client 0
send "1436 44 0\n"
simple_expect "=1436" "44=shutdown-kom succeeded"
send "1439 44 0\n"
simple_expect "=1439" "44=shutdown-kom succeeded"
client_death 0
lyskomd_death
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