Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
01eca1d0
Commit
01eca1d0
authored
Jan 17, 2003
by
Per Cederqvist
Browse files
Test case completed.
parent
dbbc7b1b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/server/testsuite/lyskomd.0/35.exp
View file @
01eca1d0
...
...
@@ -473,18 +473,91 @@ simple_expect "=1081"
send "1082 29 $tno\n"
simple_expect "=1082"
# FIXME (bug 59): Test for async-sub-recipient when we are not allowed
# to see the recipient.
# Test for async-sub-recipient when we are not allowed to see the recipient.
talk_to client 0
# Create conference 7, a secret conference.
send "1083 88 [holl "secret conf"] 10100000 0 { }\n"
simple_expect "=1083 7"
# Text 22: linked via a comm-to.
set tno 22
send "1084 86 [holl "text $tno"] 3 { 0 3 2 1 0 7 } 0 { }\n"
simple_expect "=1084 $tno"
talk_to client 1
simple_expect ":16 0 $tno $any_time 5 0 7 0 3 { 0 3 6 20 2 1 }"
simple_expect ":18 15 $tno $any_time 5 0 7 0 3 { 0 3 6 20 2 1 } 0 \\*"
# Add conference 4 as recipient of text $tno.
talk_to client 0
send "1085 30 $tno 4 0\n"
simple_expect "=1085"
talk_to client 1
simple_expect ":3 16 $tno 4 0"
# Remove conference 4 as recipient of text $tno.
talk_to client 0
send "1086 31 $tno 4\n"
simple_expect "=1086"
talk_to client 1
simple_expect ":3 17 $tno 4 0"
# Remove conference 7 as recipient of text $tno.
talk_to client 0
send "1087 31 $tno 7\n"
simple_expect "=1087"
# Add conference 7 as recipient of text $tno.
send "1088 30 $tno 7 0\n"
simple_expect "=1088"
# Delete text $tno.
send "1089 29 $tno\n"
simple_expect "=1089"
talk_to client 1
simple_expect ":18 14 $tno $any_time 5 0 7 0 3 { 0 3 6 20 2 1 } 0 \\*"
# Test for async-sub-recipient when we subtract the reason we want to
# see it.
# Text 23: linked via a comm-to, sent to a conference we are a member of.
set tno 23
talk_to client 0
send "1090 86 [holl "text $tno"] 2 { 0 1 2 1 } 0 { }\n"
simple_expect "=1090 $tno"
talk_to client 1
simple_expect ":16 0 $tno $any_time 5 0 7 0 3 { 0 1 6 2 2 1 }"
simple_expect ":18 15 $tno $any_time 5 0 7 0 3 { 0 1 6 2 2 1 } 0 \\*"
# Remove conference 1 as recipient of text $tno.
talk_to client 0
send "1091 31 $tno 1\n"
simple_expect "=1091"
talk_to client 1
simple_expect ":3 17 $tno 1 0"
# Delete text $tno.
talk_to client 0
send "1092 29 $tno\n"
simple_expect "=1092"
# FIXME (bug 59): Test for async-sub-recipient when we subtract the
# reason we want to see it.
# Text 24: sent to a conference we are a member of.
set tno 24
talk_to client 0
send "1093 86 [holl "text $tno"] 1 { 0 1 } 0 { }\n"
simple_expect "=1093 $tno"
talk_to client 1
simple_expect ":16 0 $tno $any_time 5 0 7 0 2 { 0 1 6 3 }"
simple_expect ":18 15 $tno $any_time 5 0 7 0 2 { 0 1 6 3 } 0 \\*"
# Remove conference 1 as recipient of text $tno.
talk_to client 0
send "1094 31 $tno 1\n"
simple_expect "=1094"
talk_to client 1
simple_expect ":3 17 $tno 1 0"
# Delete text $tno.
talk_to client 0
send "1095 29 $tno\n"
simple_expect "=1095"
# Shut everything down.
talk_to client 0
send "10
83
42 255\n"
simple_expect "=10
83
"
send "10
84
44 0\n"
simple_expect "=10
84
"
send "10
96
42 255\n"
simple_expect "=10
96
"
send "10
97
44 0\n"
simple_expect "=10
97
"
client_death 0
client_death 1
lyskomd_death
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment