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

New file that triggers an assertion.

parent 46b31f9b
# Test suite for lyskomd.
# Copyright (C) 2003 Lysator Academic Computer Association.
#
# This file is part of the LysKOM server.
#
# LysKOM is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 1, or (at your option)
# any later version.
#
# LysKOM is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# for more details.
#
# You should have received a copy of the GNU General Public License
# along with LysKOM; see the file COPYING. If not, write to
# Lysator, c/o ISY, Linkoping University, S-581 83 Linkoping, SWEDEN,
# or the Free Software Foundation, Inc., 675 Mass Ave, Cambridge,
# MA 02139, USA.
#
# Please mail bug reports to bug-lyskom@lysator.liu.se.
# Try to trigger bug 1005: "lyskomd: prot-a-output.c:166:
# prot_a_output_read_texts: Assertion `mship->no_of_read_ranges > 0'
# failed."
lyskomd_start
client_start 0
talk_to client 0
send "A0H\n"
simple_expect "LysKOM"
send "1000 62 5 6Hgazonk 1\n"
simple_expect "=1000"
# Join conference 1.
send "1001 100 1 5 200 10 00000000\n"
simple_expect "=1001"
# Log out, so that person 5 is no longer locked in memory.
send "1002 1\n"
simple_expect "=1002"
# Start a save. This will move the person from ptr to a snapshot.
if {$debug_calls} {
send "990 1004\n"
simple_expect ":0 7"
simple_expect "=990"
} else {
unsupported "testing for bug 1005 requires --with-debug-calls"
}
# Log in again. This will trigger a copy of the snapshot to ptr.
send "1003 62 5 6Hgazonk 1\n"
simple_expect "=1003"
# Do query-read-texts with want-read-ranges set to false.
send "1004 107 5 1 0 0\n"
simple_expect "=1004 1 $any_time 1 200 0 \\* 5 $any_time 00000000"
# Do get-membership-old with want-read-ranges set to false.
send "1005 46 5 1 1 0\n"
simple_expect "=1005 1 { $any_time 1 200 0 0 \\* }"
if {$debug_calls} {
# Save the snapshot of the database.
send "993 1005\n"
simple_expect ":0 7"
simple_expect "=993"
}
# Shut everything down.
talk_to client 0
send "1006 42 255\n"
simple_expect "=1006"
send "1007 44 0\n"
simple_expect "=1007"
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