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
dba516ee
Commit
dba516ee
authored
22 years ago
by
Per Cederqvist
Browse files
Options
Downloads
Patches
Plain Diff
Match all output. Somehow this test didn't fail even though there
were unmatched output from lyskomd. Strange.
parent
7e3684d3
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/server/testsuite/lyskomd.0/11.exp
+13
-16
13 additions, 16 deletions
src/server/testsuite/lyskomd.0/11.exp
with
13 additions
and
16 deletions
src/server/testsuite/lyskomd.0/11.exp
+
13
−
16
View file @
dba516ee
...
@@ -181,25 +181,16 @@ simple_expect "MSG: garb ready. 0 texts deleted."
...
@@ -181,25 +181,16 @@ simple_expect "MSG: garb ready. 0 texts deleted."
system "kill -HUP $new_pid"
system "kill -HUP $new_pid"
set bypass 0
set bypass 0
set test "non-stale lyskomd sent final line"
set test "non-stale lyskomd sent final line"
expect {
simple_expect "Signal HUP received. Shutting down server."
-re "^\[0-9 :\]* $new_pid Press enter to terminate lyskomd$nl" {
simple_expect "../lyskomd terminated normally."
pass "$test"
simple_expect "Press enter to terminate lyskomd"
}
eof {
fail "$test (unexpected EOF)"
wait
set bypass 1
}
}
unset test
if {$bypass == 0} {
send "\n"
send "\n"
set test "non-stale lyskomd died"
set test "non-stale lyskomd died"
expect {
expect {
eof { pass "$test"; wait }
eof { pass "$test"; wait }
}
}
unset test
unset test
}
# Start a new lyskomd while a lock file for a remote system exists.
# Start a new lyskomd while a lock file for a remote system exists.
system "ln -s inet.lysator.liu.se:4711 db/lyskomd-lock"
system "ln -s inet.lysator.liu.se:4711 db/lyskomd-lock"
...
@@ -215,6 +206,12 @@ expect {
...
@@ -215,6 +206,12 @@ expect {
pass "$test"
pass "$test"
}
}
}
}
set test "lock complaint"
expect {
-re "^\[0-9 :\]* Cannot obtain database lock. Exiting.$nl" {
pass "$test"
}
}
set test "local lyskomd sent final line"
set test "local lyskomd sent final line"
expect {
expect {
-re "^\[0-9 :\]* Press enter to terminate lyskomd$nl" {
-re "^\[0-9 :\]* Press enter to terminate lyskomd$nl" {
...
...
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