proc setup {} { save_env }; # setup() proc teardown {} { assert_env_unmodified }; # teardown() setup set test "Tab should show completions" # Try completion set cmd "tightvncviewer " 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