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
2469e470
Commit
2469e470
authored
Jun 28, 1999
by
Per Cederqvist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(dbck_run): New proc.
(lyskomd_death): Call dbck_run to check the database after each shutdown.
parent
6f7db70e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
0 deletions
+35
-0
src/server/testsuite/config/unix.exp
src/server/testsuite/config/unix.exp
+35
-0
No files found.
src/server/testsuite/config/unix.exp
View file @
2469e470
...
...
@@ -499,8 +499,43 @@ proc lyskomd_death {} {
}
system "cat etc/memory-usage >> usage.all"
check_memory_usage
dbck_run
}
proc dbck_run {} {
global nl
global test
global any_num
spawn ../dbck -d config/lyskomd-config
set test "dbck started"
expect_after {
timeout { fail "$test (timeout)" }
eof { fail "$test (eof)" }
}
expect {
-re "^MSG: init_cache: using datafile\.$nl" { pass "$test" }
}
set test "dbck sent second line"
expect {
-re "^Read $any_num confs/persons and $any_num texts, eof at $any_num$nl" {
pass "$test"
}
}
set test "dbck sent final line"
expect {
-re "^Press enter to terminate dbck$nl" {
pass "$test"
}
}
send "\n"
set test "dbck died"
expect {
eof { pass "$test"; wait }
}
unset test
}
proc client_start {nr} {
global client_id
global clientport
...
...
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