in expect 5.38.0 on solaris 9, run the following:
script:
for { set i 1 } { 1 } { incr i } {
spawn echo foobarbaz
expect {
"foobarbaz" {
puts "ok"
expect eof
wait
}
eof {
puts "$i passes"
wait
exit 1
}
}
}
It also appears to fail in expect 5.26.0
It should loop forever; instead, it exits after a few iterations on multiprocessor systems running s10.
It appears to loop "forever" on s10 uniprocessors.
A user at xxxxx reports that it exits after "40 to 400+" iterations on a (uniprocessor) sunblade 100