From 5d6fbb2db8372f8695085dd4f097a37f6376c216 Mon Sep 17 00:00:00 2001 From: Per Cederqvist Date: Mon, 21 Jun 1999 18:49:51 +0000 Subject: [PATCH] Updated to match the log messages currently sent by lockdb.c. --- src/server/testsuite/lyskomd.0/11.exp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/server/testsuite/lyskomd.0/11.exp b/src/server/testsuite/lyskomd.0/11.exp index 0d23c679..035a8206 100644 --- a/src/server/testsuite/lyskomd.0/11.exp +++ b/src/server/testsuite/lyskomd.0/11.exp @@ -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 Stale lock file left by $any*:$lyskomd_pid removed\.$nl" { + -re " $new_pid Removed stale 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" } } -- GitLab