Commit b35d0662 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(lyskomd_start): Look for the warning message about

	--with-debug-calls, and set debug_calls to a
	true value if it is found.
parent c3ded2bc
...@@ -187,6 +187,7 @@ proc lyskomd_start {{aux_item_conf_file ""} {extra_config ""}} { ...@@ -187,6 +187,7 @@ proc lyskomd_start {{aux_item_conf_file ""} {extra_config ""}} {
global aux_item_default_conf_file global aux_item_default_conf_file
global lyskomd_pid global lyskomd_pid
global top_srcdir global top_srcdir
global debug_calls
if { $aux_item_conf_file == "" } { if { $aux_item_conf_file == "" } {
set aux_item_conf_file $aux_item_default_conf_file set aux_item_conf_file $aux_item_default_conf_file
...@@ -224,7 +225,11 @@ proc lyskomd_start {{aux_item_conf_file ""} {extra_config ""}} { ...@@ -224,7 +225,11 @@ proc lyskomd_start {{aux_item_conf_file ""} {extra_config ""}} {
set test "server started" set test "server started"
set t $timeout set t $timeout
set timeout [expr {2 * $timeout}] set timeout [expr {2 * $timeout}]
set debug_calls 0
expect { expect {
-re "WARNING: This server was compiled wit --with-debug-calls" {
set debug_calls 1
}
-re "MSG: garb ready. 0 texts deleted.$nl" {pass "$test"} -re "MSG: garb ready. 0 texts deleted.$nl" {pass "$test"}
timeout {fail "$test (timeout)"} timeout {fail "$test (timeout)"}
buffer_full {fail "$test (buffer_full)"} buffer_full {fail "$test (buffer_full)"}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment