Freddy Vulto 0367d0bf57 (testsuite) Moved tool_start() code to tool_init()
${tool}_start was called from within `config/default_exp', but this
proves to be error-prone, because DejaGnu isn't fully initialized at
that point, causing an error when calling one of the DejaGnu methods
pass/fail/unsupported/xfail/unresolved/untested:

    can't read "multipass_name": no such variable

The right way seems to be calling ${tool}_start() from
${tool}_init().
2010-11-05 21:11:57 +01:00

22 lines
511 B
Plaintext

# Set default expect fallback routines
expect_after {
eof {
if {[info exists test]} {
fail "$test at eof"
} elseif {[info level] > 0} {
fail "[info level 1] at eof"
} else {
fail "eof"
}
}
timeout {
if {[info exists test]} {
fail "$test at timeout"
} elseif {[info level] > 0} {
fail "[info level 1] at timeout"
} else {
fail "timeout"
}
}
}