51b3e20ebc
Instead of writing `}; # if', write just `}' as was discussed here: http://www.mail-archive.com/bash-completion-devel@lists.alioth.debian.org/msg01815.html
43 lines
623 B
Plaintext
43 lines
623 B
Plaintext
proc setup {} {
|
|
save_env
|
|
}
|
|
|
|
|
|
proc teardown {} {
|
|
assert_env_unmodified
|
|
}
|
|
|
|
|
|
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" }
|
|
}
|
|
|
|
|
|
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" }
|
|
}
|
|
|
|
|
|
sync_after_int
|
|
|
|
|
|
teardown
|