27 lines
334 B
Plaintext
27 lines
334 B
Plaintext
|
proc setup {} {
|
||
|
}; # setup()
|
||
|
|
||
|
|
||
|
proc teardown {} {
|
||
|
}; # teardown()
|
||
|
|
||
|
|
||
|
setup
|
||
|
|
||
|
|
||
|
set test "Tab should complete"
|
||
|
# Try completion
|
||
|
set cmd "pvchange --"
|
||
|
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
|