proc setup {} { }; # setup() proc teardown {} { }; # teardown() setup set test "Tab should complete" # Try completion set cmd "sshow -" send "$cmd\t" expect { -re "^$cmd\r\n.*$cmd$" { pass "$test" } -re /@ { unresolved "$test at prompt" } -re eof { unresolved "eof" } }; # expect sync_after_int teardown