summaryrefslogtreecommitdiffstats
path: root/src/lib/kadm5/unit-test/api.0/mod-policy.exp
diff options
context:
space:
mode:
authorTom Yu <tlyu@mit.edu>2002-09-15 19:14:32 +0000
committerTom Yu <tlyu@mit.edu>2002-09-15 19:14:32 +0000
commit9d485540575f484b6ed67f0257e8223b73cb99f2 (patch)
tree7bb18619ecbba1b6cd4e5a2dcec65c5f597a07a7 /src/lib/kadm5/unit-test/api.0/mod-policy.exp
parent524863007d05dcac385a0d6e4860b0cc3fb97aab (diff)
downloadkrb5-9d485540575f484b6ed67f0257e8223b73cb99f2.tar.gz
krb5-9d485540575f484b6ed67f0257e8223b73cb99f2.tar.xz
krb5-9d485540575f484b6ed67f0257e8223b73cb99f2.zip
* api.0/chpass-principal.exp:
* api.0/crte-policy.exp: * api.0/crte-principal.exp: * api.0/destroy.exp: * api.0/dlte-policy.exp: * api.0/dlte-principal.exp: * api.0/get-policy.exp: * api.0/get-principal.exp: * api.0/init.exp: * api.0/mod-policy.exp: * api.0/mod-principal.exp: * api.0/randkey-principal.exp: * api.0/rename-principal.exp: * api.1/lock.exp: * api.2/chpass-principal-v2.exp: * api.2/chpass-principal.exp: * api.2/crte-policy.exp: * api.2/crte-principal.exp: * api.2/destroy.exp: * api.2/dlte-policy.exp: * api.2/dlte-principal.exp: * api.2/get-policy.exp: * api.2/get-principal-v2.exp: * api.2/get-principal.exp: * api.2/init-v2.exp: * api.2/init.exp: * api.2/mod-policy.exp: * api.2/mod-principal-v2.exp: * api.2/mod-principal.exp: * api.2/randkey-principal-v2.exp: * api.2/randkey-principal.exp: * lib/lib.t: s/error/perror. * config/unix.exp: Work around tcl 8.4's (incorrect?) output EOL translation. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14866 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/kadm5/unit-test/api.0/mod-policy.exp')
-rw-r--r--src/lib/kadm5/unit-test/api.0/mod-policy.exp76
1 files changed, 38 insertions, 38 deletions
diff --git a/src/lib/kadm5/unit-test/api.0/mod-policy.exp b/src/lib/kadm5/unit-test/api.0/mod-policy.exp
index c0dd93e641..ec55999b71 100644
--- a/src/lib/kadm5/unit-test/api.0/mod-policy.exp
+++ b/src/lib/kadm5/unit-test/api.0/mod-policy.exp
@@ -17,7 +17,7 @@ proc test2 {} {
$OVSEC_KADM_STRUCT_VERSION $OVSEC_KADM_API_VERSION_1 \
server_handle
}]} {
- error "$test: unexpected failure in init"
+ perror "$test: unexpected failure in init"
return
}
one_line_fail_test [format {
@@ -25,7 +25,7 @@ proc test2 {} {
{OVSEC_KADM_PW_MAX_LIFE}
} $test] "AUTH_MODIFY"
if { ! [cmd {ovsec_kadm_destroy $server_handle}]} {
- error "$test: unexpected failure in destroy"
+ perror "$test: unexpected failure in destroy"
return
}
}
@@ -45,7 +45,7 @@ proc test4 {} {
$OVSEC_KADM_STRUCT_VERSION $OVSEC_KADM_API_VERSION_1 \
server_handle
}]} {
- error "$test: unexpected failure in init"
+ perror "$test: unexpected failure in init"
return
}
one_line_fail_test [format {
@@ -53,7 +53,7 @@ proc test4 {} {
{OVSEC_KADM_REF_COUNT}
} $test] "BAD_MASK"
if { ! [cmd {ovsec_kadm_destroy $server_handle}]} {
- error "$test: unexpected failure in destroy"
+ perror "$test: unexpected failure in destroy"
return
}
}
@@ -76,7 +76,7 @@ proc test8 {} {
$OVSEC_KADM_STRUCT_VERSION $OVSEC_KADM_API_VERSION_1 \
server_handle
}]} {
- error "$test: unexpected failure in init"
+ perror "$test: unexpected failure in init"
return
}
one_line_fail_test {
@@ -84,7 +84,7 @@ proc test8 {} {
{OVSEC_KADM_PW_MAX_LIFE}
} "BAD_POLICY"
if { ! [cmd {ovsec_kadm_destroy $server_handle}]} {
- error "$test: unexpected failure in destroy"
+ perror "$test: unexpected failure in destroy"
return
}
}
@@ -105,7 +105,7 @@ proc test9 {} {
$OVSEC_KADM_STRUCT_VERSION $OVSEC_KADM_API_VERSION_1 \
server_handle
}]} {
- error "$test: unexpected failure in init"
+ perror "$test: unexpected failure in init"
return
}
if {! [cmd [format {
@@ -128,7 +128,7 @@ proc test9 {} {
}
if { ! [cmd {ovsec_kadm_destroy $server_handle}]} {
- error "$test: unexpected failure in destroy"
+ perror "$test: unexpected failure in destroy"
return
}
}
@@ -148,7 +148,7 @@ proc test10 {} {
$OVSEC_KADM_STRUCT_VERSION $OVSEC_KADM_API_VERSION_1 \
server_handle
}]} {
- error "$test: unexpected failure in init"
+ perror "$test: unexpected failure in init"
return
}
if {! [cmd [format {
@@ -170,7 +170,7 @@ proc test10 {} {
timeout { fail "$test" }
}
if { ! [cmd {ovsec_kadm_destroy $server_handle}]} {
- error "$test: unexpected failure in destroy"
+ perror "$test: unexpected failure in destroy"
return
}
}
@@ -193,7 +193,7 @@ proc test11 {} {
$OVSEC_KADM_STRUCT_VERSION $OVSEC_KADM_API_VERSION_1 \
server_handle
}]} {
- error "$test: unexpected failure in init"
+ perror "$test: unexpected failure in init"
return
}
if {! [cmd [format {
@@ -215,7 +215,7 @@ proc test11 {} {
timeout { fail "$test" }
}
if { ! [cmd {ovsec_kadm_destroy $server_handle}]} {
- error "$test: unexpected failure in destroy"
+ perror "$test: unexpected failure in destroy"
return
}
}
@@ -237,7 +237,7 @@ proc test12 {} {
$OVSEC_KADM_STRUCT_VERSION $OVSEC_KADM_API_VERSION_1 \
server_handle
}]} {
- error "$test: unexpected failure in init"
+ perror "$test: unexpected failure in init"
return
}
if {! [cmd [format {
@@ -259,7 +259,7 @@ proc test12 {} {
timeout { fail "$test" }
}
if { ! [cmd {ovsec_kadm_destroy $server_handle}]} {
- error "$test: unexpected failure in destroy"
+ perror "$test: unexpected failure in destroy"
return
}
}
@@ -279,7 +279,7 @@ proc test13 {} {
$OVSEC_KADM_STRUCT_VERSION $OVSEC_KADM_API_VERSION_1 \
server_handle
}]} {
- error "$test: unexpected failure in init"
+ perror "$test: unexpected failure in init"
return
}
one_line_fail_test [format {
@@ -287,7 +287,7 @@ proc test13 {} {
{OVSEC_KADM_PW_MIN_LENGTH}
} $test] "BAD_LENGTH"
if { ! [cmd {ovsec_kadm_destroy $server_handle}]} {
- error "$test: unexpected failure in destroy"
+ perror "$test: unexpected failure in destroy"
return
}
}
@@ -309,7 +309,7 @@ proc test14 {} {
$OVSEC_KADM_STRUCT_VERSION $OVSEC_KADM_API_VERSION_1 \
server_handle
}]} {
- error "$test: unexpected failure in init"
+ perror "$test: unexpected failure in init"
return
}
if {! [cmd [format {
@@ -331,7 +331,7 @@ proc test14 {} {
timeout { fail "$test" }
}
if { ! [cmd {ovsec_kadm_destroy $server_handle}]} {
- error "$test: unexpected failure in destroy"
+ perror "$test: unexpected failure in destroy"
return
}
}
@@ -351,7 +351,7 @@ proc test15 {} {
$OVSEC_KADM_STRUCT_VERSION $OVSEC_KADM_API_VERSION_1 \
server_handle
}]} {
- error "$test: unexpected failure in init"
+ perror "$test: unexpected failure in init"
return
}
one_line_fail_test [format {
@@ -359,7 +359,7 @@ proc test15 {} {
{OVSEC_KADM_PW_MIN_CLASSES}
} $test] "BAD_CLASS"
if { ! [cmd {ovsec_kadm_destroy $server_handle}]} {
- error "$test: unexpected failure in destroy"
+ perror "$test: unexpected failure in destroy"
return
}
}
@@ -381,7 +381,7 @@ proc test16 {} {
$OVSEC_KADM_STRUCT_VERSION $OVSEC_KADM_API_VERSION_1 \
server_handle
}]} {
- error "$test: unexpected failure in init"
+ perror "$test: unexpected failure in init"
return
}
if {! [cmd [format {
@@ -405,7 +405,7 @@ proc test16 {} {
if { ! [cmd {ovsec_kadm_destroy $server_handle}]} {
- error "$test: unexpected failure in destroy"
+ perror "$test: unexpected failure in destroy"
return
}
}
@@ -427,7 +427,7 @@ proc test17 {} {
$OVSEC_KADM_STRUCT_VERSION $OVSEC_KADM_API_VERSION_1 \
server_handle
}]} {
- error "$test: unexpected failure in init"
+ perror "$test: unexpected failure in init"
return
}
if {! [cmd [format {
@@ -450,7 +450,7 @@ proc test17 {} {
}
if { ! [cmd {ovsec_kadm_destroy $server_handle}]} {
- error "$test: unexpected failure in destroy"
+ perror "$test: unexpected failure in destroy"
return
}
}
@@ -472,7 +472,7 @@ proc test18 {} {
$OVSEC_KADM_STRUCT_VERSION $OVSEC_KADM_API_VERSION_1 \
server_handle
}]} {
- error "$test: unexpected failure in init"
+ perror "$test: unexpected failure in init"
return
}
one_line_fail_test [format {
@@ -480,7 +480,7 @@ proc test18 {} {
{OVSEC_KADM_PW_MIN_CLASSES}
} $test] "BAD_CLASS"
if { ! [cmd {ovsec_kadm_destroy $server_handle}]} {
- error "$test: unexpected failure in destroy"
+ perror "$test: unexpected failure in destroy"
return
}
}
@@ -501,7 +501,7 @@ proc test19 {} {
$OVSEC_KADM_STRUCT_VERSION $OVSEC_KADM_API_VERSION_1 \
server_handle
}]} {
- error "$test: unexpected failure in init"
+ perror "$test: unexpected failure in init"
return
}
one_line_fail_test [format {
@@ -509,7 +509,7 @@ proc test19 {} {
{OVSEC_KADM_PW_HISTORY_NUM}
} $test] "BAD_HISTORY"
if { ! [cmd {ovsec_kadm_destroy $server_handle}]} {
- error "$test: unexpected failure in destroy"
+ perror "$test: unexpected failure in destroy"
return
}
}
@@ -531,7 +531,7 @@ proc test20 {} {
$OVSEC_KADM_STRUCT_VERSION $OVSEC_KADM_API_VERSION_1 \
server_handle
}]} {
- error "$test: unexpected failure in init"
+ perror "$test: unexpected failure in init"
return
}
if {! [cmd [format {
@@ -554,7 +554,7 @@ proc test20 {} {
}
if { ! [cmd {ovsec_kadm_destroy $server_handle}]} {
- error "$test: unexpected failure in destroy"
+ perror "$test: unexpected failure in destroy"
return
}
}
@@ -576,7 +576,7 @@ proc test21 {} {
$OVSEC_KADM_STRUCT_VERSION $OVSEC_KADM_API_VERSION_1 \
server_handle
}]} {
- error "$test: unexpected failure in init"
+ perror "$test: unexpected failure in init"
return
}
if {! [cmd [format {
@@ -599,7 +599,7 @@ proc test21 {} {
}
if { ! [cmd {ovsec_kadm_destroy $server_handle}]} {
- error "$test: unexpected failure in destroy"
+ perror "$test: unexpected failure in destroy"
return
}
}
@@ -619,7 +619,7 @@ proc test22 {} {
$OVSEC_KADM_STRUCT_VERSION $OVSEC_KADM_API_VERSION_1 \
server_handle
}]} {
- error "$test: unexpected failure in init"
+ perror "$test: unexpected failure in init"
return
}
one_line_fail_test [format {
@@ -627,7 +627,7 @@ proc test22 {} {
{OVSEC_KADM_PW_MAX_LIFE}
} $test] "AUTH_MODIFY"
if { ! [cmd {ovsec_kadm_destroy $server_handle}]} {
- error "$test: unexpected failure in destroy"
+ perror "$test: unexpected failure in destroy"
return
}
}
@@ -647,7 +647,7 @@ proc test23 {} {
$OVSEC_KADM_STRUCT_VERSION $OVSEC_KADM_API_VERSION_1 \
server_handle
}]} {
- error "$test: unexpected failure in init"
+ perror "$test: unexpected failure in init"
return
}
one_line_fail_test [format {
@@ -655,7 +655,7 @@ proc test23 {} {
{OVSEC_KADM_PW_MAX_LIFE}
} $test] "AUTH_MODIFY"
if { ! [cmd {ovsec_kadm_destroy $server_handle}]} {
- error "$test: unexpected failure in destroy"
+ perror "$test: unexpected failure in destroy"
return
}
}
@@ -675,7 +675,7 @@ proc test26 {} {
$OVSEC_KADM_STRUCT_VERSION $OVSEC_KADM_API_VERSION_1 \
server_handle
}]} {
- error "$test: unexpected failure in init"
+ perror "$test: unexpected failure in init"
return
}
one_line_succeed_test [format {
@@ -683,7 +683,7 @@ proc test26 {} {
{OVSEC_KADM_PW_MAX_LIFE}
} $test]
if { ! [cmd {ovsec_kadm_destroy $server_handle}]} {
- error "$test: unexpected failure in destroy"
+ perror "$test: unexpected failure in destroy"
return
}
}