summaryrefslogtreecommitdiff
path: root/test/lib/completions/chsh.exp
diff options
context:
space:
mode:
authorDavid Paleino <dapal@debian.org>2010-06-16 18:20:29 +0200
committerDavid Paleino <dapal@debian.org>2010-06-16 18:20:29 +0200
commitf9748115fb4b2950fb4df7535fb723c4affde078 (patch)
tree20875f42b219a5d56e8a7e98840f6dbced003ae0 /test/lib/completions/chsh.exp
parente5a9b6220e93ca656fd9774c6aefa78241edca6f (diff)
downloadbash-completion-f9748115fb4b2950fb4df7535fb723c4affde078.tar.gz
Imported Upstream version 1.2upstream/1.2
Diffstat (limited to 'test/lib/completions/chsh.exp')
-rw-r--r--test/lib/completions/chsh.exp26
1 files changed, 26 insertions, 0 deletions
diff --git a/test/lib/completions/chsh.exp b/test/lib/completions/chsh.exp
new file mode 100644
index 00000000..99262a2c
--- /dev/null
+++ b/test/lib/completions/chsh.exp
@@ -0,0 +1,26 @@
+proc setup {} {
+ save_env
+}; # setup()
+
+
+proc teardown {} {
+ assert_env_unmodified
+}; # teardown()
+
+
+setup
+
+
+assert_complete_any "chsh -s "
+
+
+sync_after_int
+
+
+assert_complete [exec bash -c "compgen -A user"] "chsh "
+
+
+sync_after_int
+
+
+teardown