Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
lyskom-server-ceder-1616-generations-topgit
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
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
Hide 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
...
@@ -55,7 +55,7 @@ unset test
spawn ../dbck -d -i config/lyskomd-config
spawn ../dbck -d -i config/lyskomd-config
set test "dbck finds a lock"
set test "dbck finds a lock"
expect {
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"
set test "read-write dbck sent final line"
expect {
expect {
...
@@ -74,7 +74,11 @@ unset test
...
@@ -74,7 +74,11 @@ unset test
spawn ../lyskomd -d config/lyskomd-config
spawn ../lyskomd -d config/lyskomd-config
set test "lyskomd finds a lock"
set test "lyskomd finds a lock"
expect {
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"
set test "read-write lyskomd sent final line"
expect {
expect {
...
@@ -107,7 +111,7 @@ expect {
...
@@ -107,7 +111,7 @@ expect {
set new_pid [spawn ../lyskomd -d config/lyskomd-config]
set new_pid [spawn ../lyskomd -d config/lyskomd-config]
set test "stale lock file removed"
set test "stale lock file removed"
expect {
expect {
-re " $new_pid
Stale lock file left by $any*:$lyskomd_pid remove
d\.$nl" {
-re " $new_pid
Removed stale lock file left by $any*:$lyskomd_pi
d\.$nl" {
pass "$test"
pass "$test"
}
}
}
}
...
@@ -131,7 +135,7 @@ system "ln -s inet.lysator.liu.se:4711 db/lyskomd-lock"
...
@@ -131,7 +135,7 @@ system "ln -s inet.lysator.liu.se:4711 db/lyskomd-lock"
spawn ../lyskomd -d config/lyskomd-config
spawn ../lyskomd -d config/lyskomd-config
set test "remote lock file found"
set test "remote lock file found"
expect {
expect {
-re "Database locked by inet\.lysator\.liu\.se:4711$nl" {
-re "Database
already
locked by inet\.lysator\.liu\.se:4711$nl" {
pass "$test"
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