ddb0571227
Added .swp (vim backup) files to .gitignore
43 lines
668 B
Plaintext
43 lines
668 B
Plaintext
proc setup {} {
|
|
save_env
|
|
}; # setup()
|
|
|
|
|
|
proc teardown {} {
|
|
assert_env_unmodified
|
|
}; # teardown()
|
|
|
|
|
|
setup
|
|
|
|
|
|
set test "Tab should show complete process ids"
|
|
# Try completion
|
|
set cmd "renice 1"
|
|
send "$cmd\t"
|
|
expect {
|
|
-re "$cmd\r\n\\d+.*/@$cmd$" { pass "$test" }
|
|
-re /@ { unresolved "$test at prompt" }
|
|
-re eof { unresolved "eof" }
|
|
}; # expect
|
|
|
|
|
|
sync_after_int
|
|
|
|
|
|
set test "Tab should show complete process group ids"
|
|
# Try completion
|
|
set cmd "renice -g "
|
|
send "$cmd\t"
|
|
expect {
|
|
-re "$cmd\r\n\\d+.*/@$cmd$" { pass "$test" }
|
|
-re /@ { unresolved "$test at prompt" }
|
|
-re eof { unresolved "eof" }
|
|
}; # expect
|
|
|
|
|
|
sync_after_int
|
|
|
|
|
|
teardown
|