summaryrefslogtreecommitdiff
path: root/test/lib/completions/sudo.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/lib/completions/sudo.exp')
-rw-r--r--test/lib/completions/sudo.exp15
1 files changed, 11 insertions, 4 deletions
diff --git a/test/lib/completions/sudo.exp b/test/lib/completions/sudo.exp
index 1299a6da..d6bbbbb6 100644
--- a/test/lib/completions/sudo.exp
+++ b/test/lib/completions/sudo.exp
@@ -1,17 +1,24 @@
proc setup {} {
save_env
-}; # setup()
+}
proc teardown {} {
- assert_env_unmodified
-}; # teardown()
+ assert_env_unmodified {/OLDPWD/d}
+}
setup
-assert_complete "fixtures/shared/default/foo.d/" "sudo cd fixtures/shared/default/fo"
+assert_complete_dir foo.d/ "sudo cd fo" $::srcdir/fixtures/shared/default \
+ "" -nospace
+
+
+sync_after_int
+
+
+assert_complete_dir fixtures/ "sudo sh fix" $::srcdir "" -nospace
sync_after_int