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

async-sub-recipient messages are no longer erroneously sent. Comment

out the code that causes a core dump.
parent 0736d8c8
......@@ -303,19 +303,9 @@ talk_to client 0
send "1027 29 1\n"
simple_expect ":18 14 1 $time_1 5 0 6 0 6 { 0 7 6 1 0 8 6 1 15 6 6 1 } 2 { 1 20000 5 $time_1 00100000 1 [holl "priv"] 2 20001 5 $time_1 00000000 1 [holl "pub"] }"
simple_expect ":3 17 1 7 0"
simple_expect ":3 17 1 8 0"
setup_xfail "*"
fail "Text 1: client 0: async-sub-recipient sent after async-deleted-text"
talk_to client 1
simple_expect ":18 14 1 $time_1 5 0 6 0 6 { 0 7 6 1 0 8 6 1 15 6 6 1 } 2 { 1 20000 5 $time_1 00100000 1 [holl "priv"] 2 20001 5 $time_1 00000000 1 [holl "pub"] }"
simple_expect ":3 17 1 7 0"
simple_expect ":3 17 1 8 0"
setup_xfail "*"
fail "Text 1: client 1: async-sub-recipient sent after async-deleted-text"
talk_to client 2
setup_xfail "*"
......@@ -324,12 +314,6 @@ simple_expect ":18 14 1 $time_1 5 0 6 0 6 { 0 7 6 1 0 8 6 1 15 6 6 1 } 2 { 1 200
# FIXME: this is the correct value
# simple_expect ":18 14 1 $time_1 5 0 6 0 4 { 0 7 6 1 15 6 6 1 } 1 { 2 20001 5 $time_1 00000000 1 [holl "pub"] }"
simple_expect ":3 17 1 7 0"
simple_expect ":3 17 1 8 0"
simple_expect ":3 17 1 6 15"
setup_xfail "*"
fail "Text 1: client 2: async-sub-recipient sent after async-deleted-text"
talk_to client 0
simple_expect "=1027"
......@@ -339,29 +323,13 @@ talk_to client 1
send "1028 29 3\n"
simple_expect ":18 14 3 $time_3 5 0 6 0 6 { 0 7 6 3 0 8 6 3 15 6 6 3 } 2 { 1 20000 5 $time_3 00100000 1 [holl "priv"] 2 20001 5 $time_3 00000000 1 [holl "pub"] }"
simple_expect ":3 17 3 7 0"
simple_expect ":3 17 3 8 0"
setup_xfail "*"
fail "Text 3: client 1: async-sub-recipient sent after async-deleted-text"
talk_to client 0
simple_expect ":18 14 3 $time_3 5 0 6 0 6 { 0 7 6 3 0 8 6 3 15 6 6 3 } 2 { 1 20000 5 $time_3 00100000 1 [holl "priv"] 2 20001 5 $time_3 00000000 1 [holl "pub"] }"
simple_expect ":3 17 3 7 0"
simple_expect ":3 17 3 8 0"
setup_xfail "*"
fail "Text 3: client 0: async-sub-recipient sent after async-deleted-text"
talk_to client 2
simple_expect ":18 14 3 $time_3 5 0 6 0 4 { 0 7 6 3 15 6 6 3 } 1 { 2 20001 5 $time_3 00000000 1 [holl "pub"] }"
simple_expect ":3 17 3 7 0"
simple_expect ":3 17 3 8 0"
simple_expect ":3 17 3 6 15"
setup_xfail "*"
fail "Text 3: client 2: async-sub-recipient sent after async-deleted-text"
talk_to client 1
simple_expect "=1028"
......@@ -371,11 +339,6 @@ talk_to client 2
send "1029 29 5\n"
simple_expect ":18 14 5 $time_5 6 0 6 0 4 { 0 7 6 5 0 9 6 1 } 2 { 1 20000 6 $time_5 00100000 1 [holl "priv"] 2 20001 6 $time_5 00000000 1 [holl "pub"] }"
simple_expect ":3 17 5 7 0"
simple_expect ":3 17 5 9 0"
setup_xfail "*"
fail "Text 5: client 2: async-sub-recipient sent after async-deleted-text"
talk_to client 0
setup_xfail "*"
......@@ -384,18 +347,10 @@ simple_expect ":18 14 5 $time_5 6 0 6 0 2 { 0 7 6 5 } 1 { 2 20001 6 $time_5 0000
# FIXME: this is the proper data. We are enabled and have privileges.
# simple_expect ":18 14 5 $time_5 6 0 6 0 4 { 0 7 6 5 0 9 6 1 } 2 { 1 20000 6 $time_5 00100000 1 [holl "priv"] 2 20001 6 $time_5 00000000 1 [holl "pub"] }"
simple_expect ":3 17 5 7 0"
setup_xfail "*"
fail "Text 5: client 0: async-sub-recipient sent after async-deleted-text"
talk_to client 1
simple_expect ":18 14 5 $time_5 6 0 6 0 2 { 0 7 6 5 } 1 { 2 20001 6 $time_5 00000000 1 [holl "pub"] }"
simple_expect ":3 17 5 7 0"
setup_xfail "*"
fail "Text 5: client 1: async-sub-recipient sent after async-deleted-text"
talk_to client 2
simple_expect "=1029"
......@@ -454,15 +409,18 @@ simple_expect "=1043"
# Run the garb -- all three texts should be removed
talk_to client 0
send "1044 1003\n"
simple_expect "=1044"
#### FIXME: this causes a core dump, so disable it for now
#### send "1044 1003\n"
#### simple_expect "=1044"
untested "FIXME: The garb-testing code is disabled since it causes a core dump"
# FIXME: async for deletion of text 2
# FIXME: async for deletion of text 4
# FIXME: async for deletion of text 6
# Garb ends.
simple_expect ":1 1000 3"
#### FIXME: this depends on disabled code above
#### simple_expect ":1 1000 3"
# check that no other async messages were produced
send "1045 35\n"
......
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