Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
5d6fbb2d
Commit
5d6fbb2d
authored
Jun 21, 1999
by
Per Cederqvist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated to match the log messages currently sent by lockdb.c.
parent
2ded400f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
src/server/testsuite/lyskomd.0/11.exp
src/server/testsuite/lyskomd.0/11.exp
+8
-4
No files found.
src/server/testsuite/lyskomd.0/11.exp
View file @
5d6fbb2d
...
...
@@ -55,7 +55,7 @@ unset test
spawn ../dbck -d -i config/lyskomd-config
set test "dbck finds a lock"
expect {
-re "^Database locked by $any*\.$nl" { pass "$test" }
-re "^Database
already
locked by $any*\.$nl" { pass "$test" }
}
set test "read-write dbck sent final line"
expect {
...
...
@@ -74,7 +74,11 @@ unset test
spawn ../lyskomd -d config/lyskomd-config
set test "lyskomd finds a lock"
expect {
-re "Database locked by $any*:$lyskomd_pid$nl" { pass "$test" }
-re "Database already locked by $any*:$lyskomd_pid$nl" { pass "$test" }
}
set test "lyskomd writes an exiting message."
expect {
-re "Cannot obtain database lock\. Exiting\.$nl" { pass "$test" }
}
set test "read-write lyskomd sent final line"
expect {
...
...
@@ -107,7 +111,7 @@ expect {
set new_pid [spawn ../lyskomd -d config/lyskomd-config]
set test "stale lock file removed"
expect {
-re " $new_pid
S
tale lock file left by $any*:$lyskomd_pid
removed
\.$nl" {
-re " $new_pid
Removed s
tale lock file left by $any*:$lyskomd_pid\.$nl" {
pass "$test"
}
}
...
...
@@ -131,7 +135,7 @@ system "ln -s inet.lysator.liu.se:4711 db/lyskomd-lock"
spawn ../lyskomd -d config/lyskomd-config
set test "remote lock file found"
expect {
-re "Database locked by inet\.lysator\.liu\.se:4711$nl" {
-re "Database
already
locked by inet\.lysator\.liu\.se:4711$nl" {
pass "$test"
}
}
...
...
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