diff options
| author | Ken Raeburn <raeburn@mit.edu> | 2009-02-02 18:42:06 +0000 |
|---|---|---|
| committer | Ken Raeburn <raeburn@mit.edu> | 2009-02-02 18:42:06 +0000 |
| commit | 5cd473f71968b3fef60bddc0a89b2cae70b1bdc3 (patch) | |
| tree | 7ff575990a971b9374af17a814f253cc9e91a4dc /src/lib | |
| parent | 9700f36e658a76e2db278f749ff4b8b895680c66 (diff) | |
| download | krb5-5cd473f71968b3fef60bddc0a89b2cae70b1bdc3.tar.gz krb5-5cd473f71968b3fef60bddc0a89b2cae70b1bdc3.tar.xz krb5-5cd473f71968b3fef60bddc0a89b2cae70b1bdc3.zip | |
address lib/kadm5 test suite slowness
In mod-principal tests for clearing the principal's policy, instead of
just testing to see if the wrong string is output and timing out
looking for it, check also for the new expected value. Cuts test
suite run time by about two minutes for each pass (client vs server).
ticket: 6357
target_version: 1.7
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21866 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/kadm5/unit-test/api.0/mod-principal.exp | 1 | ||||
| -rw-r--r-- | src/lib/kadm5/unit-test/api.2/mod-principal.exp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/kadm5/unit-test/api.0/mod-principal.exp b/src/lib/kadm5/unit-test/api.0/mod-principal.exp index d6a9cbc902..2d68a19c11 100644 --- a/src/lib/kadm5/unit-test/api.0/mod-principal.exp +++ b/src/lib/kadm5/unit-test/api.0/mod-principal.exp @@ -598,6 +598,7 @@ proc test20 {} { send "lindex \$principal 10\n" expect { -re "test-pol\n$prompt$" { fail "$test" } + -re "null\n$prompt$" { pass "$test" } timeout { pass "$test" } } send "lindex \$p1 6\n" diff --git a/src/lib/kadm5/unit-test/api.2/mod-principal.exp b/src/lib/kadm5/unit-test/api.2/mod-principal.exp index 4472c78cee..7c381c41ad 100644 --- a/src/lib/kadm5/unit-test/api.2/mod-principal.exp +++ b/src/lib/kadm5/unit-test/api.2/mod-principal.exp @@ -598,6 +598,7 @@ proc test20 {} { send "lindex \$principal 10\n" expect { -re "test-pol\n$prompt$" { fail "$test" } + -re "null\n$prompt$" { pass "$test" } timeout { pass "$test" } } send "lindex \$p1 6\n" |
