summaryrefslogtreecommitdiff
path: root/test/lib/completions/renice.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/lib/completions/renice.exp')
-rw-r--r--test/lib/completions/renice.exp27
1 files changed, 5 insertions, 22 deletions
diff --git a/test/lib/completions/renice.exp b/test/lib/completions/renice.exp
index fdc859b4..5e25ddea 100644
--- a/test/lib/completions/renice.exp
+++ b/test/lib/completions/renice.exp
@@ -11,32 +11,15 @@ proc 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" }
-}
-
+if {[assert_bash_type ps]} {
-sync_after_int
+ assert_complete_any "renice 1"
+ sync_after_int
+ assert_complete_any "renice -g "
+ 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