summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2001-11-23 03:24:36 +0000
committerTim Potter <tpot@samba.org>2001-11-23 03:24:36 +0000
commite7d230d3271a61292a256e3e0fd1d2c51e443777 (patch)
tree416ba151125af041ea9ef9d4c6aa46216842a2d0 /testsuite
parentd2b9acd003f0fde8090a80c610280ae79ea7a706 (diff)
downloadsamba-e7d230d3271a61292a256e3e0fd1d2c51e443777.tar.gz
samba-e7d230d3271a61292a256e3e0fd1d2c51e443777.tar.bz2
samba-e7d230d3271a61292a256e3e0fd1d2c51e443777.zip
Fixed bug in canned results list for checking the error code of wbinfo.
Made test names more verbose. (This used to be commit 87955fcf303d82d38ae543e7986c59fd086dc2db)
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/nsswitch/wbinfo.exp28
1 files changed, 14 insertions, 14 deletions
diff --git a/testsuite/nsswitch/wbinfo.exp b/testsuite/nsswitch/wbinfo.exp
index 3518db387b..8be25b2a0f 100644
--- a/testsuite/nsswitch/wbinfo.exp
+++ b/testsuite/nsswitch/wbinfo.exp
@@ -306,20 +306,20 @@ set goodgroup_sid [util_start "bin/wbinfo" "-n $goodgroup_name"]
# - good uid/gid to sid
set errcode_tests [list \
- { "no arg" "bin/wbinfo" 1 } \
- { "invalid arg" "bin/wbinfo -@" 1 } \
- { "list users" "bin/wbinfo -u" 0 } \
- { "list groups" "bin/wbinfo -g" 0 } \
- { "good name to sid" "bin/wbinfo -n $gooduser_name" 0 } \
- { "bad name to sid" "bin/wbinfo -n asmithee" 0 } \
- { "good sid to name" "bin/wbinfo -s $gooduser_sid" 0 } \
- { "bad sid to name" "bin/wbinfo -s S-1234" 1 } \
- { "bad uid to sid" "bin/wbinfo -U 0" 1 } \
- { "bad gid to sid" "bin/wbinfo -G 0" 1} \
- { "good sid to uid" "bin/wbinfo -S $gooduser_sid" 0 } \
- { "bad sid to uid" "bin/wbinfo -S S-1234" 1 } \
- { "good sid to gid" "bin/wbinfo -Y $goodgroup_sid" 0 } \
- { "bad sid to gid" "bin/wbinfo -Y S-1234" 1 } \
+ { "exit code, no arg" "bin/wbinfo" 1 } \
+ { "exit code, invalid arg" "bin/wbinfo -@" 1 } \
+ { "exit code, list users" "bin/wbinfo -u" 0 } \
+ { "exit code, list groups" "bin/wbinfo -g" 0 } \
+ { "exit code, good name to sid" "bin/wbinfo -n $gooduser_name" 0 } \
+ { "exit code, bad name to sid" "bin/wbinfo -n asmithee" 1 } \
+ { "exit code, good sid to name" "bin/wbinfo -s $gooduser_sid" 0 } \
+ { "exit code, bad sid to name" "bin/wbinfo -s S-1234" 1 } \
+ { "exit code, bad uid to sid" "bin/wbinfo -U 0" 1 } \
+ { "exit code, bad gid to sid" "bin/wbinfo -G 0" 1} \
+ { "exit code, good sid to uid" "bin/wbinfo -S $gooduser_sid" 0 } \
+ { "exit code, bad sid to uid" "bin/wbinfo -S S-1234" 1 } \
+ { "exit code, good sid to gid" "bin/wbinfo -Y $goodgroup_sid" 0 } \
+ { "exit code, bad sid to gid" "bin/wbinfo -Y S-1234" 1 } \
]
foreach { test } $errcode_tests {