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

Be prepared that query-read-texts-old now adjusts the read ranges.

Test 107=query-read-texts and 108=get-membership.  Renumber.
parent 55766f67
......@@ -1064,9 +1064,7 @@ simple_expect "=1286 $any_time 7 100 0 0 \\*"
send "1287 77 7 1\n"
simple_expect "=1287"
send "1288 9 6 7\n"
# It would be proper for the implementation to return "2 0 \\*"
# instead of "1 0 \\*" since text 2 no longer exists.
simple_expect "=1288 $any_time 7 100 1 0 \\*"
simple_expect "=1288 $any_time 7 100 2 0 \\*"
# Local text number 2 no longer exists
send "1289 77 7 2\n"
......@@ -1147,8 +1145,8 @@ while {"$user_active_2" == "$user_active_1"} {
# since we test that *more* than two seconds has passed.
# Maybe we should move the waits for the two previous ticks
# earlier in the test.
send "1312 35\n"
extracting_expect "=1312 ($any_time)" user_active_3 1
send "101313 35\n"
extracting_expect "=101313 ($any_time)" user_active_3 1
while {"$user_active_3" == "$user_active_2"} {
sleep 0.1
send "999 35\n"
......@@ -1308,14 +1306,14 @@ simple_expect "=1350"
send "1351 91 10\n"
simple_expect "=1351 [holl "aux in general"] 01001000 $time_c_10 $time_c_10 8 0 8 0 8 0 77 77 0 1 0 7123123 1 { 1 14 8 $time_c_10 00000000 1 [holl "10"] }"
# test call 98 (query-read-texts)
# test call 98 (query-read-texts-10)
send "1352 98 6 7\n"
simple_expect "=1352 1 $any_time 7 100 6 0 \\* 6 $any_time 00000000"
send "1353 98 6 6\n"
simple_expect "=1353 0 $any_time 6 255 0 0 \\* 6 $any_time 00000000"
# test call 99 (get-membership)
# test call 99 (get-membership-10)
send "1354 99 6 0 100 1\n"
simple_expect "=1354 2 { 0 $any_time 6 255 0 0 \\* 6 $any_time 00000000 1 $any_time 7 100 6 0 \\* 6 $any_time 00000000 }"
......@@ -1395,31 +1393,46 @@ simple_expect "=1370"
send "1371 49 8\n"
simple_expect "=1371 [idholl "ic@gratia.unknown."] 0000010000000000 01011010 $any_time 0 $any_num 3 0 80 0 0 1 2 1 5 0 2"
# There is no call 107--yet.
send "1372 107\n"
simple_expect "%1372 2 0"
# test call 107 (query-read-texts)
send "1372 107 6 7 1 1\n"
simple_expect "=1372 2 $any_time 7 100 1 { 1 6 } 6 $any_time 00000000"
send "1373 107 6 6 1 1\n"
simple_expect "=1373 1 $any_time 6 255 0 \\* 6 $any_time 00000000"
# test call 108 (get-membership)
send "1374 108 6 0 100 1 1\n"
simple_expect "=1374 3 { 0 $any_time 10 123 0 \\* 8 $any_time 00000000 1 $any_time 6 255 0 \\* 6 $any_time 00000000 2 $any_time 7 100 1 { 1 6 } 6 $any_time 00000000 }"
# There is no call 108--yet.
send "1373 108\n"
simple_expect "%1373 2 0"
send "1375 108 6 0 100 0 1\n"
simple_expect "=1375 3 { 0 $any_time 10 123 0 \\* 8 $any_time 00000000 1 $any_time 6 255 0 \\* 6 $any_time 00000000 2 $any_time 7 100 1 \\* 6 $any_time 00000000 }"
# There is no call 109--yet.
send "1374 109\n"
simple_expect "%1374 2 0"
send "1376 109\n"
simple_expect "%1376 2 0"
# There is no call 110--yet.
send "1375 110\n"
simple_expect "%1375 2 0"
send "1377 110\n"
simple_expect "%1377 2 0"
# There is no call 111--yet.
send "1378 111 1 2 3 4 1 32 { 2 }\n"
simple_expect "%1378 2 0"
# There is no call 112--yet.
send "1379 112\n"
simple_expect "%1379 2 0"
# Disconnect all but the first session
talk_to client 2
send "1376 55 4\n"
simple_expect "=1376"
send "1380 55 4\n"
simple_expect "=1380"
client_death 2
talk_to client 1
send "1377 55 2\n"
simple_expect "=1377"
send "1381 55 2\n"
simple_expect "=1381"
simple_expect ":2 13 8 2"
client_death 1
......@@ -1427,20 +1440,20 @@ client_death 1
talk_to client 0
simple_expect ":2 13 8 2"
send "1378 62 5 [holl "bar"] 0\n"
send "1382 62 5 [holl "bar"] 0\n"
simple_expect ":2 13 6 1"
simple_expect ":2 9 5 1"
simple_expect "=1378"
simple_expect "=1382"
send "1379 42 255\n"
simple_expect "=1379" "42=enable succeeded"
send "1380 43\n"
send "1383 42 255\n"
simple_expect "=1383" "42=enable succeeded"
send "1384 43\n"
simple_expect ":0 7"
simple_expect ":0 7"
simple_expect "=1380"
simple_expect "=1384"
talk_to client 0
send "1381 44 0\n"
simple_expect "=1381" "44=shutdown-kom succeeded"
send "1385 44 0\n"
simple_expect "=1385" "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