Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
lyskom-server-ceder-1616-generations-topgit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
ec3804ed
Commit
ec3804ed
authored
22 years ago
by
Per Cederqvist
Browse files
Options
Downloads
Patches
Plain Diff
New file that triggers an assertion.
parent
46b31f9b
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/server/testsuite/lyskomd.0/36.exp
+83
-0
83 additions, 0 deletions
src/server/testsuite/lyskomd.0/36.exp
with
83 additions
and
0 deletions
src/server/testsuite/lyskomd.0/36.exp
0 → 100644
+
83
−
0
View file @
ec3804ed
# 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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment